一、PDO 连接
<?php
//try 是为了出错可以抛出错误
try{
$dsn =PDO(mysql:host='localhost';dbname='kf',root,**);
}catch(PDOException $e){
echo 'ERROR:'.$e->getMessage();
exit();
}
一、PDO 连接
<?php
//try 是为了出错可以抛出错误
try{
$dsn =PDO(mysql:host='localhost';dbname='kf',root,**);
}catch(PDOException $e){
echo 'ERROR:'.$e->getMessage();
exit();
}