出于某种原因,我在使用我的编辑脚本时遇到了这个错误。我什至尝试填写POST
值并通过PHPmyAdmin
. 这是我得到的错误:
#1064 - 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 'drop=1, sell=10, cash=10, law=7, boss=1 WHERE ID=11' at line 1
这是查询:
UPDATE toondb SET name='$_POST[toonname]', tlaff=$_POST[tlaff], ttype=$_POST[ttype], toonup=$_POST[toonup], trap=$_POST[trap], lure=$_POST[诱惑],声音=$_POST[声音],抛出=$_POST[抛出],喷=$_POST[喷射],下降=$_POST[下降],卖出=$_POST[卖出],现金=$_POST[现金] , 法律=$_POST[法律], 老板=$_POST[老板] WHERE ID=$_POST[ID]
这是填充值的那个:
更新 toondb SET name='ik',tlaff=137,ttype=2,toonup=1,trap=1,lure=1,sound=1,throw=1,squirt=1,drop=1,sell=10,cash =10, 法律=7, 老板=1 WHERE ID=11
所有列都INT
在名称之外。名称是一个varchar
。