Connection failed: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
Fatal error: Uncaught Error: Call to a member function prepare() on null in /home/www/class/DB.php:109 Stack trace: #0 /home/www/class/DB.php(194): DB->query('SELECT COUNT(*)...', Array, 1) #1 /home/www/class/Model.php(185): DB->select(Array) #2 /home/www/class/Model.php(262): Model->select('') #3 /home/www/class/Model.php(302): Model->counts() #4 /home/www/class/Model.php(51): Model->page(20, 'p', '') #5 /home/www/app/haotuan/dianying/yingyuan_list.php(36): Model->getPage(Array, Array, 20, 'p') #6 /home/www/app/haotuan/dianying/index.php(14): include('/home/www/app/h...') #7 {main} thrown in /home/www/class/DB.php on line 109