| ( ! ) 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 | 487616 | {main}( ) | .../index.php:0 |
| 2 | 2.6726 | 673928 | Router->dispatch( $uri = '/policies?year=2025' ) | .../index.php:273 |
| 3 | 2.6726 | 674304 | Router->callController( $handler = 'Policy@index', $params = [] ) | .../index.php:98 |
| 4 | 2.6732 | 675864 | PolicyController->index( ) | .../index.php:119 |
| 5 | 2.6739 | 676448 | PolicyModel->getByYearFilter( $year = '2025' ) | .../PolicyController.php:19 |
| 6 | 2.6739 | 676880 | Model->findAll( $conditions = [0 => [0 => 'YEAR(created_at)', 1 => '=', 2 => '2025']], $orderBy = 'created_at DESC', $limit = ??? ) | .../PolicyModel.php:42 |
| 7 | 2.6739 | 677632 | db_fetch_all( $sql = 'SELECT * FROM ygzj_policies WHERE `YEAR(created_at)` = ? ORDER BY created_at DESC', $params = [0 => '2025'] ) | .../Model.php:48 |
| 8 | 2.6739 | 677632 | db_query( $sql = 'SELECT * FROM ygzj_policies WHERE `YEAR(created_at)` = ? ORDER BY created_at DESC', $params = [0 => '2025'] ) | .../database.php:119 |