This commit is contained in:
Théo
2019-02-18 16:37:50 +01:00
parent 757d9a4e0b
commit a8b096039e
2 changed files with 14 additions and 4 deletions

View File

@ -11,10 +11,10 @@ function endsWith($haystack, $needle) {
}
function connect() {
$host = "127.0.0.1";
$host = "localhost";
$db = "blog";
$user = "blog";
$pass = "blog";
$user = "root";
$pass = "root";
$charset="utf8mb4";
$dsn = "mysql:host=$host;dbname=$db;charset=$charset";
@ -25,3 +25,7 @@ function connect() {
}
return $pdo;
}
function getBDD() {
}