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" SQL 语句: "SELECT `picture`.* FROM `picture` WHERE pid= " SQL 错误代码: "7335941".

错误原因:

您看到这个错误页面是因为应用程序抛出了没有捕获的异常。

异常的详细内容: exception 'FLEA_Db_Exception_SqlQuery' with message '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"
SQL 语句: "SELECT  `picture`.* FROM `picture`  WHERE pid= "
SQL 错误代码: "7335941".' in D:\freehost\yifei2\web\flea\FLEA\Db\Driver\Mysql.php:126
Stack trace:
#0 D:\freehost\yifei2\web\flea\FLEA\Db\TableDataGateway.php(448): FLEA_Db_Driver_Mysql->execute('SELECT  `pictur...')
#1 D:\freehost\yifei2\web\app\front\Controller\product.php(91): FLEA_Db_TableDataGateway->findAll('pid=')
#2 D:\freehost\yifei2\web\flea\FLEA\Dispatcher\Simple.php(120): Controller_product->actionshow()
#3 D:\freehost\yifei2\web\flea\FLEA\Dispatcher\Simple.php(77): FLEA_Dispatcher_Simple->_executeAction('product', 'show', 'Controller_prod...')
#4 D:\freehost\yifei2\web\flea\FLEA.php(816): FLEA_Dispatcher_Simple->dispatching()
#5 D:\freehost\yifei2\web\index.php(83): FLEA::runMVC()
#6 {main}

Exception: FLEA_Db_Exception_SqlQuery
Message: 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" SQL 语句: "SELECT `picture`.* FROM `picture` WHERE pid= " SQL 错误代码: "7335941".


Filename: D:\freehost\yifei2\web\flea\FLEA\Db\TableDataGateway.php [448]
#6 FLEA_Db_Driver_Mysql::execute('SELECT `picture`.* FROM `p ...')

Filename: D:\freehost\yifei2\web\app\front\Controller\product.php [91]
#5 FLEA_Db_TableDataGateway::findAll('pid=')

Filename: D:\freehost\yifei2\web\flea\FLEA\Dispatcher\Simple.php [120]
#4 Controller_product::actionshow()

Filename: D:\freehost\yifei2\web\flea\FLEA\Dispatcher\Simple.php [77]
#3 FLEA_Dispatcher_Simple::_executeAction('product', 'show', 'Controller_product')

Filename: D:\freehost\yifei2\web\flea\FLEA.php [816]
#2 FLEA_Dispatcher_Simple::dispatching()

Filename: D:\freehost\yifei2\web\index.php [83]
#1 FLEA::runMVC()