mChaloBEST/local/dbconn2.php
2011-08-13 18:12:40 +05:30

14 lines
407 B
PHP

<?php
$host = "mysql4.ezhostingserver.com"; //database location
$user = "bbusr"; //database username
$pass = "bbmesn123"; //database password
$dbname = "BestBus"; //database name
//database connection
try {
/*** connect to MySQL database ***/
$conn2 = new PDO('mysql:host=' . $host . ';dbname=' . $dbname , $user, $pass);
}
catch(PDOException $e) {
echo $e->getMessage();
}
?>