function DatabaseHandler::get_school_id_for_transfer_course_id

7.x DatabaseHandler.php DatabaseHandler::get_school_id_for_transfer_course_id($transfer_course_id)
6.x DatabaseHandler.php DatabaseHandler::get_school_id_for_transfer_course_id($transfer_course_id)

File

classes/DatabaseHandler.php, line 1017

Class

DatabaseHandler

Code

function get_school_id_for_transfer_course_id($transfer_course_id) {

  return intval(db_result(db_query("SELECT school_id FROM transfer_courses WHERE transfer_course_id = ?", array($transfer_course_id))));
}