My simple PHP code:
$query = "SELECT 'food', 'calories' FROM 'food'";
if($query_run = mysql_query($query)){
echo 'Query success';
}else {
echo mysql_error();
}
My error message:
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 ''food'' at line 1
Can't really find out the problem, please any help?