[8] ErrorException in Index.php line 736

未定义变量: page

  1. $page = 1;
  2. }
  3. $pagesize = 10;
  4. $sql = "select count(*) as count from violet_apartment a
  5. left join violet_building b
  6. on a.buildid=b.buildid
  7. where b.areaid=$this->areaid";
  8. $total = Db::query($sql)[0]['count'];
  9. $offset = ($page - 1) * $pagesize;
  10. $sql = "select a.buildid,a.apartmentid,a.total,b.avg_price,a.builtup_area,a.room,a.hall,a.bathroom,a.picture from violet_apartment a
  11. left join violet_building b
  12. on a.buildid=b.buildid
  13. where b.areaid=$this->areaid and a.status=1 limit $offset,$pagesize";
  14. $hxt = Db::query($sql);
  15. if($hxt) {
  16. foreach ($hxt as $k => $v) {

Call Stack

  1. in Index.php line 736
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/www.uum...', 736, ['param' => ['list', 'loupan1292454', 'period0', ...], 'pagesize' => 10, 'sql' => 'select count(*) as c...', ...]) in Index.php line 736
  3. at Index->hxt()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  5. at App::invokeMethod([object(Index), 'hxt'], []) in App.php line 611
  6. at App::module(['index', 'index', 'hxt'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'hxt'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/www.uum...') in index.php line 21

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "areaid": 96 }

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
hbbz.uumfw.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
//huxing/list-loupan1292454-period0-shi3.html
REDIRECT_STATUS
200
SERVER_NAME
www.uumfw.com
SERVER_PORT
80
SERVER_ADDR
172.23.50.39
REMOTE_PORT
53508
REMOTE_ADDR
18.204.214.205
SERVER_SOFTWARE
nginx/1.20.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.uumfw.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/huxing/list-loupan1292454-period0-shi3.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//huxing/list-loupan1292454-period0-shi3.html
SCRIPT_FILENAME
/www/wwwroot/www.uumfw.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711651046.4495
REQUEST_TIME
1711651046
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.uumfw.com/public/../application/
PC_PATH
/www/wwwroot/www.uumfw.com/public/../application/index/view/
PUBLIC_PATH
/www/wwwroot/www.uumfw.com/public/../public/
A_PATH
/www/wwwroot/www.uumfw.com/public/../public/a/
THINK_VERSION
5.0.24
THINK_START_TIME
1711651046.4499
THINK_START_MEM
412512
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.uumfw.com/thinkphp/
LIB_PATH
/www/wwwroot/www.uumfw.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.uumfw.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.uumfw.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.uumfw.com/
EXTEND_PATH
/www/wwwroot/www.uumfw.com/extend/
VENDOR_PATH
/www/wwwroot/www.uumfw.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.uumfw.com/runtime/
LOG_PATH
/www/wwwroot/www.uumfw.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.uumfw.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.uumfw.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.uumfw.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false