Upcoming / Past Events

Events

Upcoming Events
= curdate() order by year,month,day "; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) > 0) { // output data of each row while($row = mysqli_fetch_assoc($result)){ //$id = $row['id']; $month_num = $row["month"]; $month_name = date("F", mktime(0, 0, 0, $month_num, 10)); echo " "; } } else { echo "0 results"; } mysqli_close($conn); ?>
Past Events
0) { // output data of each row while($row1 = mysqli_fetch_assoc($result)){ //$id = $row['id']; $month_num1 = $row1["month"]; $month_name1 = date("F", mktime(0, 0, 0, $month_num1, 10)); echo " "; } } else { echo "0 results"; } mysqli_close($conn); ?>