";
// create a definition list
print "
";
print "Requested Storm Tracks: 0
";
// parse the result set and build data tables
//
$prevName = "";
$prevStormId = -1;
$tableId = 0;
$rowNum = 1;
while ($row = mysql_fetch_object($rs)) {
// If the storm-name or storm id changed, check if this is the first storm in the result
if ($row->storm_id != $prevStormId) {
// if this is not the first storm name in query result set, close current table
if ($prevStormId!=-1) {
print "";
print "";
print "
";
print "";
}
$prevName = $row->storm_name;
$prevStormId = $row->storm_id;
$year = substr($row->start_date, 0, 4);
$stormNumberInYearId = $row->storm_num;
// start a new table
$tableId++;
$rowNum = 1;
print "