Could not fetch the supervisorīs offered projects: " . mysql_error() . "
"); // fetching all supervising students $sv_student_query = mysql_query("SELECT p.PROJ_ID, h.FORENAME, h.SURNAME, h.USERNAME FROM susx_course_projects p INNER JOIN student s ON s.registration_number = p.registration_number INNER JOIN hes_people h ON h.person_code = s.person_code WHERE p.person_code = ". $sv_query_row['PERSON_CODE'] ." AND p.status = 'CLOSED' ORDER BY h.SURNAME") or die("Could not fetch the supervisorīs students: " . mysql_error() . "
"); $number_supervised_students = mysql_num_rows($sv_student_query); // fetching all proposing students $proposing_student_query = mysql_query("SELECT p.PROJ_ID, h.FORENAME, h.SURNAME, h.USERNAME FROM susx_course_projects p INNER JOIN student s ON s.registration_number = p.registration_number INNER JOIN hes_people h ON h.person_code = s.person_code WHERE p.person_code = ". $sv_query_row['PERSON_CODE'] ." AND p.status NOT LIKE 'ARCHIVED' AND p.status NOT LIKE 'CLOSED' ORDER BY h.SURNAME") or die("Could not fetch the supervisorīs students: " . mysql_error() . "
"); $number_proposing_students = mysql_num_rows($proposing_student_query); // displaying the supervisor data in a table echo '
|
The supervisors could not be displayed due to a database error:
"; } // close the database connection disconnect(); // set the footer include ('templates/mle-ftr.inc'); ?>