I have the below code running and cannot find what the error is. Can anyone suggest anything I should check?
$result = mysql_query("SELECT * FROM table") or die (mysql_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 'table' at line 1
table is a reserved keyword, you must escape it with backtick.
SELECT *
FROM `table`
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With