thinkphp中CURD操作出错,求高手解决!我的thinkphp是最新版3.2.3,运行thinkphp以前版本做的程序出错!错误如下:
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 ')' at line 1
错误位置
FILE: D:\WWW\9\ThinkPHP\Library\Think\Db\Driver.class.php LINE: 169
这个错误的位置提示是 \Think\Db\Driver.class.php 但是这个是thinkphp的框架中的应该没错的,求高手解决!
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 ')' at line 1
错误位置
FILE: D:\WWW\9\ThinkPHP\Library\Think\Db\Driver.class.php LINE: 169
这个错误的位置提示是 \Think\Db\Driver.class.php 但是这个是thinkphp的框架中的应该没错的,求高手解决!
$m = M();
echo $m->getLastSql();sql语句的语法有问题。