This commit is contained in:
2024-10-11 15:25:45 +02:00
parent a59f40bc79
commit 0e0e141982
7 changed files with 262 additions and 0 deletions

14
crud/connect.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
try {
$host = "localhost";
$user = "root";
$password = "2487169350";
// Connexion à la bdd
$db = new PDO("mysql:host=$host;dbname=cruddb", $user, $password);
$db->exec('SET NAMES "UTF8"');
} catch (PDOException $e) {
echo 'Erreur : ' . $e->getMessage();
die();
}