I keep getting the following SQL syntax error:
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 'desc, tag ) VALUES( '1', '1', '1', 'Jakis pis', 'Jakis tag')' at line 1Query failed
MYSQL QUERY:
$qry = "INSERT INTO lang".$lang." ( lang, submenu, live, desc, tag ) VALUES( '$lang', '$submenu', '$live', '$desc', '$tag') ";
print_r($qry);
Full SQL Query: INSERT INTO lang1 ( lang, submenu, live, desc, tag ) VALUES( '1', '1', '1', 'Some desc', 'Some tags')
I checked the table names and column names multiple times, can you see any syntax error?
mysql_real_escape_string
– User789 Jan 30 '12 at 13:59'
of the error message is where to begin looking for problems. Though it's understandable if you weren't aware of the reserved keywords. – Michael Berkowski Jan 30 '12 at 14:03