Cflax Posted April 30, 2011 Share Posted April 30, 2011 $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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.