| ( ! ) Fatal error: Uncaught Exception: 数据库查询失败 in /home/www/xjma.com.cn/newPHPSCHOOL/config/database.php on line 101 |
| ( ! ) Exception: 数据库查询失败 in /home/www/xjma.com.cn/newPHPSCHOOL/config/database.php on line 101 |
| Call Stack |
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 486232 | {main}( ) | .../index.php:0 |
| 2 | 0.0015 | 666888 | Router->dispatch( $uri = '/policies?year=2025' ) | .../index.php:273 |
| 3 | 0.0015 | 667264 | Router->callController( $handler = 'Policy@index', $params = [] ) | .../index.php:98 |
| 4 | 0.0021 | 668824 | PolicyController->index( ) | .../index.php:119 |
| 5 | 0.0028 | 669408 | PolicyModel->getByYearFilter( $year = '2025' ) | .../PolicyController.php:19 |
| 6 | 0.0028 | 669840 | Model->findAll( $conditions = [0 => [0 => 'YEAR(created_at)', 1 => '=', 2 => '2025']], $orderBy = 'created_at DESC', $limit = ??? ) | .../PolicyModel.php:42 |
| 7 | 0.0028 | 670592 | db_fetch_all( $sql = 'SELECT * FROM ygzj_policies WHERE `YEAR(created_at)` = ? ORDER BY created_at DESC', $params = [0 => '2025'] ) | .../Model.php:48 |
| 8 | 0.0028 | 670592 | db_query( $sql = 'SELECT * FROM ygzj_policies WHERE `YEAR(created_at)` = ? ORDER BY created_at DESC', $params = [0 => '2025'] ) | .../database.php:119 |