mysql_connect('localhost', 'root', 'admin'); 
mysql_select_db('WineList'); 
$sql="SELECT DISTINCT FlavorProfile1 WHERE QtyInStock > 0 FROM Wines"; 
$records = mysql_query($sql); 

echo "<TABLE BORDER=1 WIDTH=100% CELLPADDING=4 CELLSPACING=3>";

while($wine=mysql_fetch_assoc($records)){

	echo "<tr>";
	echo "<td>".$wine['FlavorProfile1']."</td>";
	echo "</tr>";
  	
}

echo "</TABLE>";