Highlights, News & Events

query($sql); if (PEAR::isError($res)) { die($mdb2->getMessage()); } else { $row = $res->fetchRow(MDB2_FETCHMODE_ASSOC); return $row['tally']; } } $sql = "SELECT *, DATE_FORMAT(`date`, '%m/%d/%Y') AS niceynicedate FROM news_stories ORDER BY `date` DESC "; $sql .= "LIMIT ". (isset($_REQUEST['limit']) ? $_REQUEST['limit'] : 0) .", 10 "; $res = $db->query($sql); if (PEAR::isError($res)) { die($mdb2->getMessage()); } else { if ($res->numRows() > 0) { while ($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) { foreach ($row as $key => $val) $$key = stripslashes($val); ?>
Posted: