function format_date ($date_format) {
$yr = substr ($date_format, 2,2);
$mo = substr ($date_format, 6,1);
$da = substr ($date_format, 8,2);
echo $mo . "." . $da . "." . $yr;
}
?>
Camp Wekeela - Wigwam
$db = mysql_connect("localhost", "campweke", "supastar");
@mysql_select_db('campweke_newsletter', $db) or die( "Unable to connect to database");
$query = "SELECT * FROM published_newsletters ORDER BY date";
$result = mysql_query($query);
$i = 0; $j = 0; $l = 0; $m = 0;
while ($row = mysql_fetch_row($result)) {
if (substr($row[1], 5,2) == "07") {
$july_date[$i] = $row[1];
$july_id[$i] = $row[0];
$i++;
} else if (substr($row[1], 5,2) == "08") {
$aug_date[$j] = $row[1];
$aug_id[$j] = $row[0];
$j++;
} else if (substr($row[1], 5,2) == "09") {
$sep_date[$l] = $row[1];
$sep_id[$l] = $row[0];
$l++;
} else if (substr($row[1], 5,2) == "10") {
$oct_date[$m] = $row[1];
$oct_id[$m] = $row[0];
$m++;
}
}
?>

|
 |
Winter 2005 Wigwam is here!
Download it now
The Wigwam is posted daily for the summer of 2004.
*Please click on a date to view that Wigwam
|
|
|
|