:(

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 '[i][' order by id desc limit 0,1' at line 1 [ SQL语句 ] : select id,title from dvl_product where id < '' + data[i][' order by id desc limit 0,1

错误位置

FILE: /data/wwwroot/dvlwebsite/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 350

TRACE

#0 /data/wwwroot/dvlwebsite/ThinkPHP/Library/Think/Db/Driver.class.php(350): E('1064:You have a...')
#1 /data/wwwroot/dvlwebsite/ThinkPHP/Library/Think/Db/Driver.class.php(180): Think\Db\Driver->error()
#2 /data/wwwroot/dvlwebsite/ThinkPHP/Library/Think/Model.class.php(1382): Think\Db\Driver->query('select id,title...')
#3 /data/wwwroot/dvlwebsite/Application/Home/Controller/IndexController.class.php(159): Think\Model->query('select id,title...')
#4 [internal function]: Home\Controller\IndexController->productdetail()
#5 /data/wwwroot/dvlwebsite/ThinkPHP/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\IndexController))
#6 /data/wwwroot/dvlwebsite/ThinkPHP/Library/Think/App.class.php(110): Think\App::invokeAction(Object(Home\Controller\IndexController), 'productdetail')
#7 /data/wwwroot/dvlwebsite/ThinkPHP/Library/Think/App.class.php(204): Think\App::exec()
#8 /data/wwwroot/dvlwebsite/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#9 /data/wwwroot/dvlwebsite/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#10 /data/wwwroot/dvlwebsite/index.php(24): require('/data/wwwroot/d...')
#11 {main}

Baidu
sogou