This commit is contained in:
2025-05-16 01:14:30 +02:00
parent 4aed96037d
commit 4f7b1715f7
21 changed files with 12 additions and 9 deletions

6
connect.php Normal file → Executable file
View File

@ -4,7 +4,7 @@ try {
$db = new PDO("mysql:host=$DB_HOST;dbname=$DB_NAME", $DB_USER, $DB_PASSWORD);
$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch(Exception $e) {
header("Location: 500.php");
} catch (Exception $e) {
//header("Location: 500.php");
die($e);
}
?>