forked from mrlan/LRR
Mabasa Nyasha Mutyambizi 202025800045-Fixed Bug 51: Unable to find course after entering the course code.
parent
bea6d94db7
commit
aa6401c5cd
|
@ -564,8 +564,9 @@ if( $_SESSION['user_type']=="Student")
|
||||||
$result = mysqli_query($con,"SELECT `Course_ID`, `Course_Name`, `Academic_Year`, `Faculty`,"
|
$result = mysqli_query($con,"SELECT `Course_ID`, `Course_Name`, `Academic_Year`, `Faculty`,"
|
||||||
. " `Lecturer_User_ID`, `TA_User_ID`, `Course_Code`, `URL`, `Verify_New_Members` "
|
. " `Lecturer_User_ID`, `TA_User_ID`, `Course_Code`, `URL`, `Verify_New_Members` "
|
||||||
. " , users_table.Full_Name FROM `courses_table` INNER JOIN users_table"
|
. " , 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
|
else
|
||||||
{
|
{
|
||||||
echo "<h3> Find Courses under faculty $faculty</h3>";
|
echo "<h3> Find Courses under faculty $faculty</h3>";
|
||||||
|
|
Loading…
Reference in New Issue