mChaloBEST/local/dbconn.php

14 lines
406 B
PHP
Raw 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 ***/
$conn = new PDO('mysql:host=' . $host . ';dbname=' . $dbname , $user, $pass);
}
catch(PDOException $e) {
echo $e->getMessage();
}
?>