ok
Direktori : /home/ngwcolle/public_html/LIBRARY-NGWC/student/includes/ |
Current File : //home/ngwcolle/public_html/LIBRARY-NGWC/student/includes/pdoconfig.php |
<?php $DB_host = "localhost"; $DB_user = "root"; $DB_pass = ""; $DB_name = "avms_db"; try { $DB_con = new PDO("mysql:host={$DB_host};dbname={$DB_name}",$DB_user,$DB_pass); $DB_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(PDOException $e) { $e->getMessage(); } ?>