premier commit

This commit is contained in:
2025-11-01 19:50:25 +01:00
commit 296e6c2859
14 changed files with 91 additions and 0 deletions

16
includes/db.php Executable file
View File

@@ -0,0 +1,16 @@
<?php
$host = 'db';
$dbname = 'cms_simplifie';
$user = 'root';
$pass = 'root';
try {
$pdo = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8", $user, $pass);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
die("Erreur de connexion : " . $e->getMessage());
}
?>