ok
Direktori : /home2/selectio/www/gangabuvana/ |
Current File : /home2/selectio/www/gangabuvana/config.php |
<?php ini_set('error_reporting', E_ALL); date_default_timezone_set('Asia/Kolkata'); $dbhost = 'localhost'; $dbname = 'selectio_gangabuvana_test'; $dbuser = 'selectio_gangabuvana_test'; $dbpass = 'selectio_gangabuvana_test'; 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(); }