PHP之PDO操作mysql數據庫

PDO是PHP新版中,基於面向對象的操作數據庫的方式; 先在PHP的配置文件中打開pdo開關; 使用步驟:鏈接,認證,操作數據庫 $dsn='mysql:host=127.0.0.1;port=80;dbname=lamboone'; $username='root'; $password='123'; $driver_options=array( PDO::MYSQL_ATTR_INIT_COM
相關文章
相關標籤/搜索