mChaloBEST/local/dbconn2.php

14 lines
407 B
PHP
Raw Permalink Normal View History

2011-08-13 12:42:40 +00:00
<?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();
}
?>