function DatabaseHandler::get_faculty_major_code_csv

7.x DatabaseHandler.php DatabaseHandler::get_faculty_major_code_csv($faculty_cwid)
6.x DatabaseHandler.php DatabaseHandler::get_faculty_major_code_csv($faculty_cwid)

Looks in our extra tables to find out what major code, if any, has been assigned to this faculty member.

File

classes/DatabaseHandler.php, line 1366

Class

DatabaseHandler

Code

function get_faculty_major_code_csv($faculty_cwid) {

  // Let's pull the needed variables out of our settings, so we know what
  // to query, because this is a non-FlightPath table.

  $res = $this->db_query("SELECT major_code_csv FROM faculty WHERE cwid = ? ", $faculty_cwid);
  $cur = $this->db_fetch_array($res);

  return @$cur ["major_code_csv"];

}