This commit is contained in:
William 2022-04-21 13:43:06 +02:00
parent 326b09893a
commit 79893ba3dd
2 changed files with 1 additions and 2 deletions

View File

@ -32,7 +32,6 @@ class Database
$dsn = "mysql:host={$args['host']};dbname={$args['database']};charset={$args['charset']}";
$options = [
PDO::ATTR_PERSISTENT => true,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION // in PHP 8 and above, this will be the default mode.
];
return new PDO($dsn, $args['user'], $args['password'], $options);
}

View File

@ -48,7 +48,7 @@ class ErrorHandler
body {
margin: 1rem;
background: tomato;
font-family: sans;
font-family: sans-serif;
}
#error {
padding: 1rem;