This commit is contained in:
2025-11-03 03:21:13 +01:00
parent d24bc9d52f
commit 58f6d730ae
2 changed files with 1 additions and 15 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,4 @@
.pdo.php php/pdo.php
.DS_Store .DS_Store

View File

@@ -1,14 +0,0 @@
<?php
$serveur = "localhost";
$dbname = "my_sql_projet";
$user = "root";
$pass = "root";
try {
$pdo = new PDO("mysql:host=$serveur;dbname=$dbname", $user, $pass);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
print "Erreur de connexion à la BDD : " . $e->getMessage();
die();
}
?>