thanks for the link to the article but it just says to do it like i am trying... i thought it could be my use of printf but even when i echo it i get 12/31/69. could it be the mysql date column having "-" between the date fields?
here is my code:
$result = mysql_query("SELECT * FROM events ORDER BY start_date",$db);
if ($myrow = mysql_fetch_array($result)) {
// display list if there are records to display
echo "<center><table border=0 cellspacing=15 cellpading=15>\n";
echo "<tr bgcolor=#808080><td><b>Event Name</b></td><td><b>Start Date</b></td><td><b>End Date</b></td><td><b>Location City</b></td></tr>\n";
do {
$s_date = strftime("%D",$myrow['start_date']);
$e_date = strftime("%D",$myrow['end_date']);
printf("<tr><td><a href=\"%s?event_id=%s\">%s</a></td><td>%s</td><td>%s</td><td>%s</td></tr>\n", $PHP_SELF, $myrow["event_id"], $myrow["event_name"], $s_date, $e_date, $myrow["location_city"]);
} while ($myrow = mysql_fetch_array($result));