數(shù)據庫實例化基礎模型連接超時
if(mysql_connect('localhost','root','123456')){ ? ? echo"success"; ?}else{ ? ? echo "fail"; ? ? }?
?可以成功連接數(shù)據庫但是一進行實例化基礎模型
? ?$user = new Model('fb');//fb是表名
? ? $data = $user->select();
? ? dump($data);
就報錯是怎么回事?
success
Fatal error: Maximum execution time of 60 seconds exceeded in?E:\php\AppServ\www\Message\thinkphptest1\ThinkPHP\Lib\Core\Think.class.php?on line?271
:(
Maximum execution time of 60 seconds exceeded
錯誤位置
FILE: E:\php\AppServ\www\Message\thinkphptest1\ThinkPHP\Lib\Core\Think.class.php LINE: 271
ThinkPHP3.1.3?{ Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]
2017-08-25
config.php中的表前綴加了嗎?