.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
// db.php
|
||||
$host = 'localhost';
|
||||
$username = 'root';
|
||||
$password = '';
|
||||
$database = 'poker_paf';
|
||||
|
||||
try {
|
||||
$db = new PDO("mysql:host=$host;dbname=$database;charset=utf8", $username, $password);
|
||||
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
} catch (PDOException $e) {
|
||||
die("Erreur de connexion : " . $e->getMessage());
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user