function getDueIDFromTDID($tdID, $dueType, $year) { $due = new Due(); $condition = "WHERE tdID='" . $tdID . "' AND dueDate LIKE '" . $year . "%' AND dueType='" . $dueType . "'"; $due->selectRecordFromCondition($condition); $dueID = $due->getDueID(); return $dueID; }