function sch_next_milestone($fixfor) { $ret = ""; $ff = addslashes($fixfor); $query = "select dtDue " . " from schedulator.Milestone " . " where dtDue > now() and sMilestone='{$ff}' " . " order by dtDue limit 1 "; $row = bug_onerow($query); if (count($row) >= 1) { return $row[0]; } else { return ""; } }
function create_bug($bugid) { $r = bug_onerow($this->get_query(" where ixBug = {$bugid}")); if (!$r) { // FIXME: Freak out, or make something up print "Error: Could not find bug {$bugid} in the database.<br>\n"; } return $this->create_bug_from_db_row($r); }