abstract:PDO连接数据库<?php try{ $pdo = new PDO('mysql:host=127.0.0.1;dbname=php_edu;charset=utf8','root','root'); echo&nbs
PDO连接数据库
<?php try{ $pdo = new PDO('mysql:host=127.0.0.1;dbname=php_edu;charset=utf8','root','root'); echo var_dump($pdo) ,'<br>'; $pdo = null; echo var_dump($pdo) ,'<br>'; } catch (PDOException $e) { echo '连接错误 ' .$e->getMessage() .'<br>'; }
Correcting teacher:查无此人Correction time:2019-07-11 13:28:28
Teacher's summary:完成的不错。pdo操作速度比之前的mysqli快很多。继续加油