function DatabaseHandler::get_student_gpa

7.x DatabaseHandler.php DatabaseHandler::get_student_gpa($student_cwid)
6.x DatabaseHandler.php DatabaseHandler::get_student_gpa($student_cwid)

File

classes/DatabaseHandler.php, line 1226

Class

DatabaseHandler

Code

function get_student_gpa($student_cwid) {

  // Let's perform our queries.
  $res = $this->db_query("SELECT gpa FROM students 
                      WHERE cwid = ?
                       ", $student_cwid);


  $cur = $this->db_fetch_array($res);
  return $cur ["gpa"];

}