Jump to content

SQL where clause


Woodburn2006

Recommended Posts

i used a php form to put data into a DB table.

 

1 of the columns data is a list like: cd,radio,tv

 

how do i select the records that just say CD?

 

i have tried: $sql_1cd = "SELECT * FROM dissertation WHERE q1 = '%cd%'";

 

but it returns no results when i know there are fields containing CD

Link to comment
https://forums.phpfreaks.com/topic/80783-sql-where-clause/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.