function getDueFromTdID($tdID, $taxableYear) { $due = new Due(); $condition = "WHERE tdID='" . $tdID . "' AND dueDate LIKE '" . $taxableYear . "%' AND dueType='Annual'"; $due->selectRecordFromCondition($condition); if (!($domDoc = $due->getDomDocument())) { return false; } else { $xmlStr = $domDoc->dump_mem(true); return $xmlStr; } }