I am making a variable $SQL to be processed by mysql_db_query()
The variables below are defined by a form that executes the following...
Whenever I use:
$SQL = " UPDATE carticles SET";
$SQL = $SQL . " title = '$title', ";
$SQL = $SQL . " author = '$author', ";
$SQL = $SQL . " content = '$content', ";
$SQL = $SQL . " siteurl = '$siteurl', ";
$SQL = $SQL . " artid = $artid, ";
$SQL = $SQL . " WHERE id = $id ";
$artid is a number and so is $id....
Whenever I process the form I get the following ERROR:
ERROR: You have an error in your SQL syntax near 'artid = '452001' WHERE id = 2 ' at line 1
What is the problem with the $SQL definition?