TP更改数据不成功

浏览:1234 发布日期:2015/08/18 分类:求助交流
各位大神,这个怎么办?

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 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 'WHERE `lx_id` = 1' at line 1' in E:\apache\htdocs\ls\ThinkPHP\Library\Think\Db\Driver.class.php:217 Stack trace: #0 E:\apache\htdocs\ls\ThinkPHP\Library\Think\Db\Driver.class.php(217): PDOStatement->execute() #1 E:\apache\htdocs\ls\ThinkPHP\Library\Think\Db\Driver.class.php(895): Think\Db\Driver->execute('UPDATE `ls_lxfs...', false) #2 E:\apache\htdocs\ls\ThinkPHP\Library\Think\Model.class.php(451): Think\Db\Driver->update(Array, Array) #3 E:\apache\htdocs\ls\Admin\Controller\ContactController.class.php(23): Think\Model->save() #4 [internal function]: Admin\Controller\ContactController->update('1') #5 E:\apache\htdocs\ls\ThinkPHP\Library\Think\App.class.php(162): ReflectionMethod->invokeArgs(object(Admin\Controller\ContactController), Array) #6 E:\apache\htdocs\ls\ThinkPHP\L in E:\apache\htdocs\ls\ThinkPHP\Library\Think\Db\Driver.class.php on line 217

附件 clip_image002.jpg ( 21.2 KB 下载:2 次 )

最佳答案
评论() 相关
后面还有条评论,点击查看>>