"); echo (""); echo ("Date"); echo ("Wine"); echo ("Producer"); echo ("Region"); echo (""); # for ($i=0; $i < $num_results; $i++) { $row = mysql_fetch_array($result); $wine_index = ($row[15]); $wine_name = ($row["wine_name"]); $wine_type = ($row[1]); $wine_vintage = ($row[2]); $wine_region = ($row["region_name"]); $wine_producer = ($row[4]); $tasting_date = ($row[10]); #Display only wines with text in "wine_name" field. if (strlen($wine_name) > 1) { echo (""); echo ("$tasting_date"); echo ("$wine_name $wine_vintage"); echo ("$wine_producer"); echo ("$wine_region"); echo (""); } } echo (""); echo ("

Previous Tastings

"); ?>