diff options
author | polo <ordipolo@gmx.fr> | 2024-02-09 15:56:55 +0100 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2024-02-09 15:56:55 +0100 |
commit | 949737cf5fc2a21b36c4a269a437d0dc2e965441 (patch) | |
tree | 5a6962408f833e6e2b04519fed544193e41e6360 /connexionbase.php | |
download | lelionetlecolibri-949737cf5fc2a21b36c4a269a437d0dc2e965441.zip |
Diffstat (limited to 'connexionbase.php')
-rw-r--r-- | connexionbase.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/connexionbase.php b/connexionbase.php new file mode 100644 index 0000000..3e1d309 --- /dev/null +++ b/connexionbase.php | |||
@@ -0,0 +1,10 @@ | |||
1 | <?php | ||
2 | try | ||
3 | { | ||
4 | $base = new PDO('mysql:host=localhost;dbname=lelionetlecolibri;charset=utf8', 'root', 'qsdfgh'); | ||
5 | } | ||
6 | catch (Exception $e) | ||
7 | { | ||
8 | die('Erreur : ' . $e->getMessage()); // message d'erreur si connexion impossible | ||
9 | } | ||
10 | ?> | ||