abstract://连接数据库$db = @mysqli_connect('127.0.0.1','root','root','test','3306');if (!$db){ //连接错误 ,抛出异常 exit('数据库报错'.mysqli_connect_error());}
//连接数据库
$db = @mysqli_connect('127.0.0.1','root','root','test','3306');
if (!$db){
//连接错误 ,抛出异常
exit('数据库报错'.mysqli_connect_error());
}
Correcting teacher:韦小宝Correction time:2019-01-22 11:23:53
Teacher's summary:你这写的也太少了吧 下次这样的作业就不给你通过了