这是我为更新数据而写的查询。在php中更新数据库
$sql=makeSQL($myVals,$fieldsu,
"update users set",
"where id='".mysql_real_escape_string($_POST["PID"])."'");
但我得到一个错误的
update users set'Amol','Kulkarni','[email protected]','amol','9870004268')Error Save [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 ''Amol','Kulkarni','[email protected]','amol','9870004268')' at line 1]
建议我在这....
什么是makeSQL?而且,这是一个语法错误,因为你写的不是SQL。 – Ariel
您的'makeSQL'函数正在生成不正确的SQL查询。 – air4x
您的问题是错误 – Elby