function _DatabaseHandler::get_degree_tracks
Search API
4.x _DatabaseHandler.php | _DatabaseHandler::get_degree_tracks($major_code, $catalog_year) |
5.x _DatabaseHandler.php | _DatabaseHandler::get_degree_tracks($major_code, $catalog_year) |
File
- classes/
_DatabaseHandler.php, line 1192
Class
Code
function get_degree_tracks($major_code, $catalog_year)
{
// Will return an array of all the tracks that a particular major
// has. Must match the major_code in degree_tracks table.
// Returns FALSE if there are none.
$rtn_array = array();
$res = $this->db_query("SELECT * FROM degree_tracks
WHERE major_code = '?'
AND catalog_year = '?' ", $major_code, $catalog_year);
if ($this->db_num_rows($res) < 1)
{
return false;
}
while ($cur = $this->db_fetch_array($res))
{
extract($cur, 3, "db");
$rtn_array [] = $db_track_code;
}
return $rtn_array;
}