From 8a2f93b162f47d160c9cb2d6c208e51c5df322f8 Mon Sep 17 00:00:00 2001 From: MatMasIt Date: Thu, 10 Feb 2022 23:35:37 +0100 Subject: [PATCH] Results method is now GET and Dewey is displayed --- server/results.php | 88 +++++++++++++++++++++++++++------------------- 1 file changed, 52 insertions(+), 36 deletions(-) diff --git a/server/results.php b/server/results.php index 0075792..339e028 100644 --- a/server/results.php +++ b/server/results.php @@ -63,108 +63,117 @@ function main($pdo, $pageN)
+
+ +
$val) { + $p = $_GET["page"]; + unset($_GET["page"]); + foreach ($_GET as $key => $val) { ?> @@ -257,7 +269,7 @@ function main($pdo, $pageN)
@@ -288,6 +300,10 @@ function main($pdo, $pageN) ISBN + + Dewey + +
" /> @@ -303,15 +319,15 @@ function main($pdo, $pageN) ?>
$val) { + foreach ($_GET as $key => $val) { ?> @@ -333,9 +349,9 @@ function main($pdo, $pageN) - + $val) { + foreach ($_GET as $key => $val) { ?> @@ -416,5 +432,5 @@ function main($pdo, $pageN) } $dbh = new PDO('sqlite:db'); -main($dbh, $_POST["page"] ?: 0); +main($dbh, $_GET["page"] ?: 0); ?>