UPDATE ".$tablename." SET stock=%s WHERE itemname=".$itemname."
SQL查询引发此错误:SQL查询错误“”附近
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 '' at line 1
找不到它是什么说起,因为它只是给了我',而不是在查询中的任何文字。谢谢!
字段名'股票'看起来像一个整数给我...你不应该把整数引号! – Jeffrey 2012-06-30 14:11:00