
02-25-2004, 03:12 PM
|
 |
|
|
Join Date: Jul 2003
Location: Dallas, Tx
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by offlead
I still need some help with this.  I managed to finally get it posting only upcoming events, and not events which have already past. However, now I'm getting the wrong dates displaying on the events. If an event is in the calendar for Feb 30, it displays on the non-vb page as being on Feb 29. All events are dated one day early.
Here's what I currently have.
PHP Code:
<?php chdir("/home/vettehea/public_html/forums"); include('./global.php'); $events = $DB_site->query ("SELECT UNIX_TIMESTAMP( ) AS dateline, dateline_from, eventid, title FROM event WHERE calendarid = 1 AND dateline_from > UNIX_TIMESTAMP( ) ORDER BY dateline_from LIMIT 10"); $vh_upcomingevents = ""; if ($DB_site->num_rows($events)) { while ($event = $DB_site->fetch_array($events)) { $timestring=$event['dateline_from']; $dateevent=date("M j, Y",$timestring); $vh_upcomingevents .= "$dateevent: <a href=\"/forums/calendar.php?$session[sessionurl]do=getinfo&day=$day&e=$event[eventid]&c=$event[calendarid]\">$event[title]</a><br />"; } } else { $vh_upcomingevents .= " -- no events currently listed -- "; } ?>
I'd greatly appreciate any help clearing up this last issue to this for me.

|
*bump*
Anyone?
|