Current Events

get_results( “SELECT * FROM wp_events”);

if ($results)
{
//start table
echo “

“;
foreach ( $results as $result )
{
echo

“;
};
echo “

Event From Date Event To Date Event Name Event Location
$result->event_from_date $result->event_to_date

$result->event_name $result->event_location

“;
}
else
{
echo “

There are no scheduled events!

“;
}
?>