First commit

This commit is contained in:
Pierre Hubert
2016-11-19 12:08:12 +01:00
commit 990540b2b9
4706 changed files with 931207 additions and 0 deletions

21
connexiondb.php Executable file
View File

@ -0,0 +1,21 @@
<?php
/**
* Database connexion file
*
* @author Pierre HUBERT
*/
//R<>cup<75>ration du fichier de configuration
include('inc/config/config.php');
//Connexion <20> la base de donn<6E>es
try {
$bdd = new PDO('mysql:host='.$hotedb.';dbname='.$nomdb, $userdb, $passworddb);
} catch(Exception $e) {
include(pagesRelativePath('common/head.php'));
include(pagesRelativePath('common/pageTop.php'));
echo'<p>Une erreur est survenue.<a href="index.php">R&eacute;essayer</a></p>';
die();
}
?>