Skip to content
Snippets Groups Projects
Commit cb12e2bf authored by David Cazier's avatar David Cazier
Browse files

Update connexion.php

parent 977d2112
No related merge requests found
......@@ -2,12 +2,13 @@
function connexion()
{
$pdo = new PDO('mysql:host=localhost;dbname=voitures;charset=utf8', "root", "");
$pdo = new PDO('mysql:host=...;dbname=voitures;charset=utf8', "...", "...");
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
if ($pdo) {
return $pdo;
} else {
}
else {
echo '<p>Erreur de connexion</p>';
exit;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment