diff --git a/add_request.php b/add_demand.php similarity index 94% rename from add_request.php rename to add_demand.php index 113fa6f..7c07602 100644 --- a/add_request.php +++ b/add_demand.php @@ -36,7 +36,7 @@ date_default_timezone_set('Europe/Amsterdam');

New entry

+ echo "
Title

Quality
diff --git a/board.php b/board.php index 5b7790d..bd076d1 100644 --- a/board.php +++ b/board.php @@ -34,7 +34,7 @@ date_default_timezone_set('Europe/Amsterdam');

Open Requests

diff --git a/edit_demand.php b/edit_demand.php new file mode 100644 index 0000000..10947a3 --- /dev/null +++ b/edit_demand.php @@ -0,0 +1,58 @@ + + + + + + + + + + + + + +
+
+
+ +

Edit

+ + + + + +
+
+ +

Edit Board

+ + +
+ +
Maximum
+
Minimum
+ +
Produktbeschreibung
+
+ + "; + ?> +
+ + diff --git a/functions.php b/functions.php index 96a3603..775f8c3 100644 --- a/functions.php +++ b/functions.php @@ -69,7 +69,7 @@ function get_userid ($con) } // A function to post a demand -function pbinsert ($con) +function post_demand ($con) { if (isset($_POST['submit'])) { global $con; @@ -89,7 +89,7 @@ function pbinsert ($con) } // A function to insert the own posts from the database into the website -function get_post_titles($con) +function get_demand_titles ($con) { global $con; $sql = "SELECT * FROM demands"; @@ -105,7 +105,7 @@ function get_post_titles($con) -
+ @@ -120,7 +120,7 @@ function get_post_titles($con) // A function to edit a demand -function edit_post($con) +function edit_demand ($con) { if (isset($_POST['edit'])) { global $con; @@ -142,7 +142,7 @@ function edit_post($con) } } // A function to delete a post -function delete_post($con) +function delete_demand($con) { if (isset($_POST['deletepost'])) { global $con; @@ -154,4 +154,4 @@ function delete_post($con) header('Location: board.php'); } } -?> +?> \ No newline at end of file diff --git a/navigation.php b/navigation.php index b2313c7..1e6681e 100644 --- a/navigation.php +++ b/navigation.php @@ -2,7 +2,7 @@ echo '' ?> diff --git a/editboard.php b/show_demand.php similarity index 100% rename from editboard.php rename to show_demand.php