Mabasa Nyasha Mutyambizi 202025800045-Fixed Bug 51: Unable to find course after entering the course code.

SIMPLICITY_Bug-189_Course_Delete_btn
Mabasa-elexma 2020-12-21 20:10:58 +08:00
parent bea6d94db7
commit aa6401c5cd
1 changed files with 2 additions and 1 deletions

View File

@ -564,8 +564,9 @@ if( $_SESSION['user_type']=="Student")
$result = mysqli_query($con,"SELECT `Course_ID`, `Course_Name`, `Academic_Year`, `Faculty`,"
. " `Lecturer_User_ID`, `TA_User_ID`, `Course_Code`, `URL`, `Verify_New_Members` "
. " , users_table.Full_Name FROM `courses_table` INNER JOIN users_table"
. " ON users_table.User_ID=courses_table.Lecturer_User_ID where Course_Code='$search' and courses_table.Course_ID not in (select course_id from course_students_table where Student_ID=$student_id)");
. " ON users_table.User_ID=courses_table.Lecturer_User_ID where Course_Code like '%{$search}%' and courses_table.Course_ID not in (select course_id from course_students_table where Student_ID=$student_id)");
}
else
{
echo "<h3> Find Courses under faculty $faculty</h3>";