Historisation Exemple
Exemple test historisé
This commit is contained in:
11
blog_mvc/modele/connexion_sql.php
Normal file
11
blog_mvc/modele/connexion_sql.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
// Connexion <20> la base de donn<6E>es
|
||||
try
|
||||
{
|
||||
$bdd = new PDO('mysql:host=localhost;dbname=test', 'root', '');
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
die('Erreur : '.$e->getMessage());
|
||||
}
|
||||
Reference in New Issue
Block a user