ok
Direktori : /home2/selectio/www/saew.in/admin/config/ |
Current File : /home2/selectio/www/saew.in/admin/config/config.php |
<?php ini_set('error_reporting', E_ALL); date_default_timezone_set('Asia/Kolkata'); $dbhost = 'localhost'; $dbname = 'selectio_amman_engineering'; $dbuser = 'selectio_amman_engineering'; $dbpass = 'amman_engineering'; try { $pdo = new PDO("mysql:host={$dbhost};dbname={$dbname}", $dbuser, $dbpass); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch( PDOException $exception ) { echo "Connection error :" . $exception->getMessage(); header("location: db-connection-error.php"); } ?>