query( "Select * from questions_student_answers where School = $schoolid" ); $ar = array(); while($row = mysql_fetch_object($Result)) { $c = new QuestionSchool(); $c->buildFromRow($row); $ar[] = $c; } return $ar; } function getCareerQuestions($careerid) { $db = new db(); $Result = $db->query( "Select * from questions_pro_answers where Career = '$careerid'" ); $ar = array(); while($row = mysql_fetch_object($Result)) { $c = new QuestionCareer(); $c->buildFromRow($row); $ar[] = $c; } return $ar; } } ?>