function DatabaseHandler::get_institution_name

7.x DatabaseHandler.php DatabaseHandler::get_institution_name($institution_id, $school_id = 0)
6.x DatabaseHandler.php DatabaseHandler::get_institution_name($institution_id, $school_id = 0)

File

classes/DatabaseHandler.php, line 969

Class

DatabaseHandler

Code

function get_institution_name($institution_id, $school_id = 0) 
 {
  // Return the name of the institution...

  $res = $this->db_query("SELECT * FROM transfer_institutions
                where institution_id = ? 
                AND school_id = ?", $institution_id, $school_id);
  $cur = $this->db_fetch_array($res);
  return trim($cur ['name']);
}