"; $todaydate = time(); $query = "SELECT * FROM vb3_event where dateline_from >= '$todaydate' order by dateline_from limit $limit"; // let's get the info $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) // let's display the info { $threadid = $row['eventid']; $title = $row['title']; $offset = 10; $utc = $row['utc']; $complete_date = date("m/d/Y", ($row['dateline_from'] + $offset * 2200)); $day = strftime("%d",$row['dateline_from']); $month = strftime("%m",$row['dateline_from']); $year = strftime("%Y",$row['dateline_from']); $link = "-"; $eventdate = $month.$link.$day.$link.$year; # US Users - uncomment the following line, and en-comment the above. # $eventdate = $month.$link.$day.$link.$year; $lookupeventdate = $year.$link.$month.$link.$day; echo "$complete_date $title 
"; } // close it all up echo(""); ?>