<?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(); } ?>