我嘗試使用下面的查詢來更新我的表...更新查詢MySQL的PHP
$query = mysql_query("UPDATE `outgoings` (id, user_id, bill, bill_name, bill_description, bill_colour) VALUES ('$id', '$uid', '$bill', '$billname', '$billdescription', '$billcolour') WHERE id = '$id'") or die(mysql_error());
它返回......
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 '(id, user_id, bill, bill_name, bill_description, bill_colour) VALUES ('', '8464' at line 1
我用盡我的周圍除去變量「和谷歌搜索替代方法,但似乎不能表達出什麼imdoing錯了?
這是正確的。 OP使用的語法是用於INSERT,不適用於UPDATE。 – octern 2012-04-13 20:39:31
啊啊謝謝... – Liam 2012-04-13 20:45:31