[8] ErrorException in Index.php line 41

未定义变量: where

  1. }
  2. if(input('pid')>0){
  3. $where=[
  4. 'pid'=>input('pid'),
  5. ];
  6. $fll=db('qjclass')->where('id',input('pid'))->find();
  7. $fl=db('qjclass')->where('pid',$fll['pid'])->select();
  8. $pid=input('pid');
  9. }
  10. $case=db('panorama')->where($where)->paginate(12);
  11. $this->assign('case',$case);
  12. $this->assign('fl',$fl);
  13. $this->assign('pid',$pid);
  14. return $this->fetch();
  15. }
  16. public function q($id) {
  17. $q=db('panorama')->where('id',$id)->find();
  18. $this->assign('q',$q);
  19. return $this->fetch();

Call Stack

  1. in Index.php line 41
  2. at Error::appError(8, 'Undefined variable: ...', '/mydata/www/web/shen...', 41, []) in Index.php line 41
  3. at Index->quanjing()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 229
  5. at App::invokeMethod([object(Index), 'quanjing']) in App.php line 383
  6. at App::module(['index', 'index', 'quanjing'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 137
  7. at App::run() in start.php line 18
  8. at require('/mydata/www/web/shen...') in index.php line 3

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/mydata/www/web/shenyuanshiye/public_html/index.php
QUERY_STRING
s=/index/index/quanjing/id/tel:0376-6555999
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index/index/quanjing/id/tel:0376-6555999
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/mydata/www/web/shenyuanshiye/public_html
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.15.10
REMOTE_ADDR
154.213.188.233
REMOTE_PORT
20000
SERVER_ADDR
10.104.160.118
SERVER_PORT
80
SERVER_NAME
www.shenyuanshiye.com
REDIRECT_STATUS
200
PATH_INFO
/index/index/quanjing/id/tel:0376-6555999
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.shenyuanshiye.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1576278831.9875
REQUEST_TIME
1576278831
Environment Variablesempty
ThinkPHP Constants
APP_PATH
./application/
THINK_VERSION
5.0.1
THINK_START_TIME
1576278831.9881
THINK_START_MEM
260232
EXT
.php
DS
/
THINK_PATH
/mydata/www/web/shenyuanshiye/public_html/thinkphp/
LIB_PATH
/mydata/www/web/shenyuanshiye/public_html/thinkphp/library/
CORE_PATH
/mydata/www/web/shenyuanshiye/public_html/thinkphp/library/think/
TRAIT_PATH
/mydata/www/web/shenyuanshiye/public_html/thinkphp/library/traits/
ROOT_PATH
./
EXTEND_PATH
./extend/
VENDOR_PATH
./vendor/
RUNTIME_PATH
./runtime/
LOG_PATH
./runtime/log/
CACHE_PATH
./runtime/cache/
TEMP_PATH
./runtime/temp/
CONF_PATH
./application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false