diff --git a/public/css/style.css b/public/css/style.css index ef95c98..829605f 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -78,6 +78,7 @@ header .logo img { } + header nav { display: flex; gap: 20px; diff --git a/public/html/about.php b/public/html/history.php similarity index 100% rename from public/html/about.php rename to public/html/history.php diff --git a/public/html/index.php b/public/html/index.php index 4812ff9..229d7d1 100644 --- a/public/html/index.php +++ b/public/html/index.php @@ -12,9 +12,10 @@ // Adjust path for admin pages if (str_starts_with($page, 'admin/')) { - $page_file = '../' . $page_file; // Ensure it's relative to the 'public' directory + $page_file = '../' . $page_file; } +//Check if the file exists and if it does include it on the page if (file_exists($page_file)) { include_once($page_file); } else { diff --git a/public/php/mysqlTables.php b/public/php/mysqlTables.php index e0d379a..af40e66 100644 --- a/public/php/mysqlTables.php +++ b/public/php/mysqlTables.php @@ -30,6 +30,7 @@ )" ]; +// Runs all the tables creations try { foreach ($queries as $sql) { $conn->exec($sql);