D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home5
/
grandhou
/
www
/
include
/
Filename :
pdo.php
back
Copy
<?php $DB_HOST = 'localhost'; $DB_USER = 'grandhou_admin21'; $DB_PASS = 'ZfD!F06KK2hw'; $DB_NAME = 'grandhou_house21'; try{ $DB_con = new PDO("mysql:host={$DB_HOST};dbname={$DB_NAME}",$DB_USER,$DB_PASS); $DB_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(PDOException $e){ echo $e->getMessage(); } ?>