This repository has been archived on 2021-12-22. You can view files and clone it, but cannot push or open issues or pull requests.
blog-legacy/lib/db.php

11 lines
262 B
PHP
Executable File

<?php
include('config/main.php');
try{
$db = new PDO('mysql:host='.$config['dbHost'].';dbname='.$config['dbName'].';charset=utf8', $config['dbUser'], $config['dbPasswd']);
}catch(PDOException $e){
print "Erreur !: " . $e->getMessage() . "<br/>";
die();
}
?>