Attendance-list/db.php

7 lines
168 B
PHP

<?php
require_once('config.php');
$pdo = new PDO('mysql:host='.$host.';dbname='.$db.';charset=utf8',$dbUser,$dbPassword);
if(!$pdo) {
die('Could not connect');
}
?>