LJackson
08-13-2009, 07:37 PM
Hi All,
i am trying to get this statment to select all records where category = either entertainment, computing, or electronics
here is what ive tried
$itemdata = "SELECT *
FROM category_data
WHERE category = 'Entertainment' OR category ='Computing' OR category = 'Electronics'
AND subcat_id = 'Bestsellers'
AND productNo = '1'
ORDER BY id ASC";
any ideas why this isnt working?
many thanks
Luke
i am trying to get this statment to select all records where category = either entertainment, computing, or electronics
here is what ive tried
$itemdata = "SELECT *
FROM category_data
WHERE category = 'Entertainment' OR category ='Computing' OR category = 'Electronics'
AND subcat_id = 'Bestsellers'
AND productNo = '1'
ORDER BY id ASC";
any ideas why this isnt working?
many thanks
Luke