Admin.php: remove dash before TA name (if any). If no TA is available, show 'None' instead of leaving it empty.
parent
6309a32a07
commit
48cff9c8d9
10
Courses.php
10
Courses.php
|
@ -385,13 +385,15 @@ course_ta ON course_ta.Course_ID=courses_table.Course_ID where course_ta.TA=$use
|
|||
$academic = $row['Academic_Year'];
|
||||
$url = $row['URL'];
|
||||
|
||||
$resultTA = mysqli_query($con,"SELECT `Course_ID`, `TA`,users_table.Full_Name as TA_NAME FROM `course_ta`
|
||||
INNER JOIN users_table on users_table.User_ID=course_ta.TA
|
||||
where course_ta.Course_ID=$id");
|
||||
$resultTA = mysqli_query($con,"SELECT `Course_ID`, `TA`,users_table.Full_Name as TA_NAME FROM `course_ta` INNER JOIN users_table on users_table.User_ID=course_ta.TA where course_ta.Course_ID=$id");
|
||||
|
||||
$ta = "";
|
||||
while($rowTA = mysqli_fetch_assoc($resultTA)) {
|
||||
$ta=$ta." - ".$rowTA['TA_NAME'];
|
||||
$ta = $ta." ".$rowTA['TA_NAME'];
|
||||
}
|
||||
|
||||
if ($ta == "") {
|
||||
$ta = " None";
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue