环亚手机端|中国有限公司

:(

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 ') AND `id` '7' ORDER BY rand()' at line 1

错误位置

FILE: D:\www\HengChuang_ng3g27\web\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 169

TRACE

#0 D:\www\HengChuang_ng3g27\web\ThinkPHP\Library\Think\Db\Driver.class.php(169): PDOStatement->execute()
#1 D:\www\HengChuang_ng3g27\web\ThinkPHP\Library\Think\Db\Driver.class.php(935): Think\Db\Driver->query('SELECT * FROM `...', false)
#2 D:\www\HengChuang_ng3g27\web\ThinkPHP\Library\Think\Model.class.php(579): Think\Db\Driver->select(Array)
#3 D:\www\HengChuang_ng3g27\web\Application\Hcshop\Controller\IndexController.class.php(623): Think\Model->select()
#4 [internal function]: Hcshop\Controller\IndexController->purchaseDesc()
#5 D:\www\HengChuang_ng3g27\web\ThinkPHP\Library\Think\App.class.php(164): ReflectionMethod->invoke(Object(Hcshop\Controller\IndexController))
#6 D:\www\HengChuang_ng3g27\web\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#7 D:\www\HengChuang_ng3g27\web\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#8 D:\www\HengChuang_ng3g27\web\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#9 D:\www\HengChuang_ng3g27\web\index.php(24): require('D:\\www\\HengChua...')
#10 {main}

Baidu
sogou