提示:500

SELECT u.*,i.classname FROM bmaimai_user u,bmaimai_industry_class i where u.id=? and i.id=u.b_industry_1 limit 1<br/>SQLSTATE[HY093]: Invalid parameter number: parameter was not defined<br/>/data/www/bmaimai.com/framework/db/CSnsConnection.php<br/>119

源文件

/data/www/bmaimai.com/framework/db/CSnsDbTools.php(228)

00216:                 $pluginId = RUN_MODE != RUN_MODEL_API ? $app->getController()->module->getId(): 'API';
00217:                 $actionId= RUN_MODE != RUN_MODEL_API ? $app->getController()->action->id: 'API';
00218:                 $queryStr = (isset($_SERVER['QUERY_STRING']))?$_SERVER['QUERY_STRING']:'';
00219:                 $app = null;
00220:                 $message = "SQL:{$sql},TIME:{$times['time']}>  rollBack();
00228: throw new CSnsDbException($ex->getMessage());
00229: } 00230: 00231: if (isset($returns[RETURN_SINGLE])) { 00232: if (isset($result[0])) { 00233: return $result[0]; 00234: } 00235: else { 00236: return false; 00237: } 00238: } 00239: 00240: else if (isset($returns[RETURN_INSERT]))

堆栈追踪

#0 /data/www/bmaimai.com/www/plugins/default/class/impls/DefaultModel.php(355): CSnsDbTools->execute('SELECT u.*,i.cl...', Array)
#1 /data/www/bmaimai.com/www/plugins/product/controllers/DefaultController.php(73): DefaultModel->getUserById(NULL)
#2 /data/www/bmaimai.com/framework/web/actions/CInlineAction.php(32): DefaultController->actionproductDetail()
#3 /data/www/bmaimai.com/framework/web/CSnsController.php(120): CInlineAction->run()
#4 /data/www/bmaimai.com/framework/web/CSnsController.php(104): CSnsController->runAction(Object(CInlineAction))
#5 /data/www/bmaimai.com/framework/web/CSnsController.php(93): CSnsController->runActionWithFilters(Object(CInlineAction), Array)
#6 /data/www/bmaimai.com/framework/web/CSnsWebApplication.php(442): CSnsController->run('productdetail')
#7 /data/www/bmaimai.com/framework/web/CSnsWebApplication.php(89): CSnsWebApplication->runController('product/default...')
#8 /data/www/bmaimai.com/framework/base/CSnsApplication.php(137): CSnsWebApplication->processRequest()
#9 /data/www/bmaimai.com/www/web/index.php(22): CApplication->run()
#10 {main}

当网页服务器处理您的请求时, 发生以上错误.

如果您认为此错误是服务器造成的,请与管理员联系 the webmaster.

谢谢.

2019-10-16 08:06:10