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 <edsonnyoni92@gmail.com>
Co-authored-by: Lan Hui <lanhui@zjnu.edu.cn>
Reviewed-on: http://121.4.94.30:3000/mrlan/LRR/pulls/42
Co-authored-by: EDSON NYONI <edsonnyoni92@gmail.com>
Co-committed-by: EDSON NYONI <edsonnyoni92@gmail.com>
Bug196-Ward
EDSON NYONI 2022-06-17 23:33:39 +08:00 committed by mrlan
parent 3bff64f400
commit 0065489fcb
1 changed files with 1 additions and 0 deletions

View File

@ -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"