New folder structure

This commit is contained in:
2024-05-24 11:17:13 +02:00
parent 2c947a0dfa
commit a20226595b
10 changed files with 17 additions and 103 deletions
+3 -3
View File
@@ -6,8 +6,8 @@
<title>Guest Book</title>
<script src="formValidation.js"></script>
<script src="textarea.js"></script>
<script src="./js/formValidation.js"></script>
<script src="./js/textarea.js"></script>
</head>
<body>
@@ -22,7 +22,7 @@
$errors = $_SESSION["error"] ?? [];
$_SESSION["error"] = [];
$string = file_get_contents("data.json") ?? "[]";
$string = file_get_contents("./data/data.json") ?? "[]";
$json = array_reverse(json_decode($string));
if (isset($_GET["p"]) && !is_numeric($_GET["p"])) {