A
Anonymous
Guest
Ok have been trying to see what is wrong with this all day and cant find out what! Probably something simple!
When running this query i get the error:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'tables WHERE catid=1' at line 1
I really cant see what is wrong with this query as i have other queries running on the same server in the same format that work fine.
Any ideas anyone?
Code:
$query2 = "SELECT * FROM tables WHERE catid=$cat";
When running this query i get the error:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'tables WHERE catid=1' at line 1
I really cant see what is wrong with this query as i have other queries running on the same server in the same format that work fine.
Any ideas anyone?