Quote:
Originally posted by freddie
PHP Code:
<?php
include('./global.php');
$events = $DB_site->query("SELECT event, eventdate, eventid, subject
FROM calendar_events
WHERE public = 1 AND eventdate >= NOW()
ORDER BY eventdate LIMIT 5");
if ($DB_site->num_rows($events)) {
echo "Next Five Events:<br>";
while ($event = $DB_site->fetch_array($events)) {
echo "<a href='calendar.php?s=".$session['sessionhash']."&action=getinfo&eventid=".$event['eventid']."'>".$event['subject']."</a><br>";
}
} else {
echo "No Events";
}
?>
It should even be Kier approved in terms of quoted array indices but it may be subject to correction.
|
You really can't imagine how happy this makes me
People can spout off about other products 'community' and 'support' but VB is in a different class.
I'll leave it there b4 I start gushing