function _DatabaseHandler::get_developmental_requirements

4.x _DatabaseHandler.php _DatabaseHandler::get_developmental_requirements($student_cwid)
5.x _DatabaseHandler.php _DatabaseHandler::get_developmental_requirements($student_cwid)

File

classes/_DatabaseHandler.php, line 229

Class

_DatabaseHandler

Code

function get_developmental_requirements($student_cwid) 
 {
  // returns an array which states whether or not the student
  // requires any developmental requirements.

  $rtn_array = array();

  $res = $this->db_query("SELECT * FROM student_developmentals
                       WHERE student_id = '?' ", $student_cwid);
  while ($cur = $this->db_fetch_array($res)) {
    $rtn_array [] = $cur ["requirement"];
  }

  return $rtn_array;

}