Jump to content

sql query prob


Cflax

Recommended Posts

$query = 'select * from ob_listings where categoryid=' . $_POST["category"] . ' and  subject like '%$term%' or description like '%$term%'';

 

i want the query to select all from the table ob_listings where categoryid=$_post["category"]

AND then from the items that fit that category

subject like '%$term%' or description like '%$term%''

 

not that familiar with sql statements

Link to comment
https://forums.phpfreaks.com/topic/235170-sql-query-prob/
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.