Home | Credits | FAQ

"; } $link = mysql_connect ("localhost:/var/run/mysqld/mysqld.sock", "root", "medicine"); mysql_select_db ("SAFE"); $query = "select * from news where TO_DAYS(NOW()) - TO_DAYS(date) <= $news_age order by date desc;"; $resp = mysql_query($query); print "

Current News (up to $news_age days old):

"; print "\n"; if ($row) { while($row = mysql_fetch_array($resp)) { print "\n\t\n\t\n"; } } print "
" . $row[date] ."" . $row[title] . "
" . $row[body] . "
"; ?>