From f0aeba0a02c1b5b716f9740d899c1daefa473338 Mon Sep 17 00:00:00 2001 From: Ismail Cadaroski Date: Mon, 27 Feb 2017 20:13:15 +0100 Subject: [PATCH] -inserted a search button into board.php -added a search page in which the results are shown --- board.php | 8 +++++++ functions.php | 1 + search_demand.php | 60 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 search_demand.php diff --git a/board.php b/board.php index f46e32a..4acef54 100644 --- a/board.php +++ b/board.php @@ -32,7 +32,15 @@ date_default_timezone_set('Europe/Amsterdam');
+

Open Demands

+ +
+ + +
+ +
diff --git a/functions.php b/functions.php index 8ea16ab..3d977d3 100644 --- a/functions.php +++ b/functions.php @@ -166,4 +166,5 @@ function delete_demand() header('Location: board.php'); } } + ?> diff --git a/search_demand.php b/search_demand.php new file mode 100644 index 0000000..7b3ca33 --- /dev/null +++ b/search_demand.php @@ -0,0 +1,60 @@ + + + + + + + + + + + + + +
+
+
+ +

Search Page

+ + + + + +
+
+ 0) { + while($row = mysqli_fetch_assoc($result)){ + echo "

"; + echo "" . $row['demandTitle'] . "" . "
"; + echo $row['date'] . "
"; + echo "

+
"; + } + }else{ + echo "There are no results matching your search!"; + } + } + ?> + +
+
+ +