Parse error: syntax error, unexpected 'list' (T_LIST), expecting identifier (T_STRING) in /www/wwwroot/hbcxzc.com/enpc/application/home/controller/Proudect.php on line 124

[4] ErrorException in Proudect.php line 124

语法错误: unexpected 'list' (T_LIST), expecting identifier (T_STRING)

  1. public function imgList()
  2. {
  3. //默认照片是第一级的所有照片
  4. $imgList = Db::name('news_class')->where('rid',13)->where('class_id',in,'17')->select();
  5. // halt($imgList);
  6. $this->assign('imgList',$imgList);
  7. return $this->fetch('proudect/index');
  8. }
  9. //左侧列表二级分类
  10. public function list($id,Request $request)
  11. {
  12. // echo $id;die;
  13. $config['type']='bootstrap';
  14. $equipment = Db::name('news')
  15. ->where('rid',13)
  16. ->order('list_order desc')
  17. ->select();
  18. //获取url地址传过来的id来判断是第几级分类
  19. $l_id = $request->param('id');

Call Stack

  1. in Proudect.php line 124
  2. at Error::appShutdown()

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/hbcxzc.com/enpc/public/index.php
QUERY_STRING
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /enpc/public/index.php
REQUEST_URI /enpc/public/index.php/home/proudect/index/id/34.html
DOCUMENT_URI /enpc/public/index.php/home/proudect/index/id/34.html
DOCUMENT_ROOT /www/wwwroot/hbcxzc.com
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.22.1
REMOTE_ADDR 18.206.12.31
REMOTE_PORT 34666
SERVER_ADDR 192.168.2.88
SERVER_PORT 80
SERVER_NAME hbcxzc.com
REDIRECT_STATUS 200
PATH_INFO /home/proudect/index/id/34.html
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST hbcxzc.com
PHP_SELF /enpc/public/index.php/home/proudect/index/id/34.html
REQUEST_TIME_FLOAT 1711637193.4544
REQUEST_TIME 1711637193
Environment Variablesempty
ThinkPHP Constants
__PHYSICS__ /www/wwwroot/hbcxzc.com/enpc