I got it working!
This line
Code:
$events = $db->query ("SELECT UNIX_TIMESTAMP() AS dateline, dateline_from, eventid, title
FROM event
WHERE calendarid = 1 AND dateline_from >= UNIX_TIMESTAMP()
Looked at the wrong table because it didn't include the prefix to the table. So I merely added the prefix to the event table and changed the calenderid to the calender I wanted.
Code:
$events = $db->query ("SELECT UNIX_TIMESTAMP() AS dateline, dateline_from, eventid, title
FROM vb_event
WHERE calendarid = 2 AND dateline_from >= UNIX_TIMESTAMP()
and it worked. Here's the link to the
test page