From 0065489fcb9307348d7f340cd6666eb45a662044 Mon Sep 17 00:00:00 2001 From: EDSON NYONI Date: Fri, 17 Jun 2022 23:33:39 +0800 Subject: [PATCH] Bug 404 Edson 201938330189 (#42) Writing the course code in lower letters, results in "No results found for your Search" i solved this issue by adding $search=strtoupper($_GET['search']); line in courses.php file Co-authored-by: edson Co-authored-by: Lan Hui Reviewed-on: http://121.4.94.30:3000/mrlan/LRR/pulls/42 Co-authored-by: EDSON NYONI Co-committed-by: EDSON NYONI --- Courses.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Courses.php b/Courses.php index 36ebc2e..e36d611 100644 --- a/Courses.php +++ b/Courses.php @@ -558,6 +558,7 @@ if( $_SESSION['user_type']=="Student") if(!empty($_GET["search"]) || !empty($_GET["faculty"])) { $search = trim(mysqli_real_escape_string($con, $_GET["search"])); + $search = strtoupper($_GET['search']); $faculty = mysqli_real_escape_string($con, $_GET["faculty"]); // the user has not entered something under "Find course by Code"