Skip to content

Commit 2169d02

Browse files
committed
added some comments
1 parent e1de1af commit 2169d02

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

public/css/style.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/html/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212

1313
// Adjust path for admin pages
1414
if (str_starts_with($page, 'admin/')) {
15-
$page_file = '../' . $page_file; // Ensure it's relative to the 'public' directory
15+
$page_file = '../' . $page_file;
1616
}
1717

18+
//Check if the file exists and if it does include it on the page
1819
if (file_exists($page_file)) {
1920
include_once($page_file);
2021
} else {

public/php/mysqlTables.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
)"
3131
];
3232

33+
// Runs all the tables creations
3334
try {
3435
foreach ($queries as $sql) {
3536
$conn->exec($sql);

0 commit comments

Comments
 (0)