Events
From time to time we attend various events around the country and
we'd like you to know where we are going to be. So on this page is where you will find
out about all the events that we are going to be at.
include "apples.php";
$tableName = "events";
$db = @mysql_connect($server,$user,$pass);
if (!$db)
{
do_error("Could not connect to the server, Im sorry") ;
}
$database = @mysql_select_db($database,$db) or do_error ("Could not connect to the admin database Im sorry") ;
$query = @mysql_query("SELECT * FROM $tableName ORDER BY DATE asc LIMIT 10");
$total_rows = @mysql_num_rows($query);
while($myeventsData = @mysql_fetch_array($query)){
$id = $myeventsData["event_id"];
$date = $myeventsData["date"];
$event = $myeventsData["event"];
$location = $myeventsData["location"];
// print "first date = " .strftime("%d,%m,%Y", strtotime($date));
$eventdate = strftime("%d %b %Y", strtotime($date));
print("| ".$eventdate." | ".$event." | ".$location." | ");
}
function do_error($error)
{
echo $error;
die;
}
?>
|