firts commit

This commit is contained in:
2026-04-27 08:48:03 +01:00
commit 05f24c50a8
18 changed files with 420 additions and 0 deletions

20
config/db.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
// Exceptions PHP-MSQLI
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
try {
// Create Connection
$conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);
// Connections Successfully
if(DB_DEBUG == "yes"){
echo "Connected successfully";
}
} catch (mysqli_sql_exception $e) {
// Access Deny
include(PAGES_FOLD . "db-error.php");
die();
}
?>