function DatabaseHandler::get_student_rank

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

Returns whatever is in the Rank field for this student. Ex: JR, SR, FR, etc.

Parameters

unknown_type $student_id:

Return value

unknown

File

classes/DatabaseHandler.php, line 1268

Class

DatabaseHandler

Code

function get_student_rank($student_cwid) {


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


  $cur = $this->db_fetch_array($res);
  $rank = $cur ["rank_code"];

  return trim($rank);
}