$currentdate = date('Y-m-d');
$event_query = "SELECT * FROM Events WHERE StartDate >= '$currentdate' AND Approved='1' Order By StartDate LIMIT 5";
$event_query_result = mysql_query($event_query);
if (mysql_num_rows($event_query_result) > 0)
{
$i =0;
while ($event_row = mysql_fetch_assoc($event_query_result))
{
$event_id = $event_row['ID'];
$event_name = $event_row['Name'];
$event_date = $event_row['StartDate'];
$event_time1 = $event_row['DisplayTime'];
$event_location = $event_row['Location'];
$event_time = mysql2timestamp($event_date);
$event_display_date = date("D, F j, o", $event_time);
echo "$event_display_date"
|