$navsql = "SELECT * FROM gforum_Roadshow WHERE 1=1 ORDER BY roadshow_date ASC";
$navresult = mysql_query($navsql) OR die(mysql_error());
$prior_city = "";
while ($navrow = mysql_fetch_array($navresult)) {
$navdatetime = new DateTime($navrow[$field_lead.'date']);
$current_city = $navrow[''.$field_lead.'city'];
if ($current_city <> $prior_city) {
echo ("
".$navdatetime->format('M j')." ".$navrow[''.$field_lead.'city'].", ".$navrow[''.$field_lead.'state'] . "
");
} else {
echo ("
");
}
echo ("
");
echo ($navrow[''.$field_lead.'name']);
echo ("");
$prior_city = $current_city;
}
?>