Premier commit

This commit is contained in:
2025-11-02 20:06:33 +01:00
12 changed files with 94 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
<?php
<<<<<<< HEAD
$host = 'localhost';
$db = 'cms_simplifie';
$user = 'root';
@@ -16,3 +17,20 @@ try {
} catch (\PDOException $e) {
die("Erreur de connexion : " . $e->getMessage());
}
=======
$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());
}
?>
>>>>>>> 69d0e49f6f3e9d2b5b42e092d74bd174b785587d