function _FlightPath::get_subject_title
Search API
4.x _FlightPath.php | _FlightPath::get_subject_title($subject_id) |
5.x _FlightPath.php | _FlightPath::get_subject_title($subject_id) |
Get the plain English title of a subject, from subject_id. Ex: COSC = Computer Science.
Parameters
unknown_type $subject_id:
Return value
unknown
File
- classes/
_FlightPath.php, line 709
Class
Code
function get_subject_title($subject_id)
{
// From the subject_id, get the title.
// Example: COSC = Computer Science.
$res = $this->db->db_query("SELECT title FROM subjects
WHERE subject_id = '?' LIMIT 1 ", $subject_id);
$cur = $this->db->db_fetch_array($res);
return trim($cur ["title"]);
}