__construct($selection); } function __construct($selection = "0000-00-00"){ $this->conn = db_connect(); } public function display($selection = "0000-00-00"){ $sql = "SELECT id FROM din_job ORDER BY published DESC WHERE expires > $selection"; $result =& $this->conn->query($sql); if (DB::isError($result) != true){ if ($result->numRows() > 0){ while ($row =& $result->fetchRow(DB_FETCHMODE_ASSOC)){ displayOptionsMenu($row['id'], "job"); $job = new Job($row['id']); $job->display(); } }else { print("Ingen stillinger er registrert."); } }else { error("Jobs: " . $result->toString()); } } public function displayList($selection = "0000-00-00"){ $sql = "SELECT id FROM din_job WHERE expires > $selection ORDER BY published DESC"; $result =& $this->conn->query($sql); if (DB::isError($result) != true){ if ($result->numRows() > 0){?>
Antall treff: numRows(); ?>
| tittel | type | forening | publisert | utgår | |||
|---|---|---|---|---|---|---|---|