我的 SQL 语法有问题。我的文件中的所有其他 SQL 方法都是正确的,但 UPDATE 方法每次都失败。我找不到错误。请帮我。
$sql = mysql_query("UPDATE ".$dbName.".'settings' SET 'interval'=".$intervalValue." WHERE 'settingID'=0 ");
我的调试方法的错误是:
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 ''settings' SET 'interval'=2800 WHERE 'settingID'=0' at line 1