I'm getting incorrect results from a query when run under PHP vs running it in phpMyAdmin.
Query is:
SELECT * FROM cart
where Category like '78'
and (name like '%fish%'
or description like '%fish%'
or keywords like '%fish%')
I would expect to get no rows returned under PHP, but I get 2.
Under phpMyAdmin I get the expected no rows found.
Php statement which generates the above exactly is:
$query_count = "SELECT * FROM cart
where Category like '$title_row[Id]'
and (name like '%$search%'
or description like '%$search%'
or keywords like '%$search%')";
Any ideas why this is not working in my PHP page?
thanks