📜  pdo db 连接 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:38.695000             🧑  作者: Mango

代码示例4
$connect = new PDO("mysql:host=$host;dbname=$db", $user, $pass, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));