hello again,
first you might need to select the database
you want to use - anyhow i put some kind
of errorhandling on your code:
<?php
$which_db="YOUR_DATABASE";
if(!$link = mysql_connect("mysql.eastcoastgolfconnection.com", "eastcoastgolf", "golfanyone?"))
die("No Connect to DB");
if(!mysql_select_db($which_db,$link))
die("No Select DB");
$query = "SELECT Distinct City from tblCourses where State = '$state' order by City";
$result = mysql_query($query,$link);
if($result)
{
$count=0;
while ($r=mysql_fetch_array ($result) )
{
$City=$r["City"];
$count++;
echo " <td>$City</td>";
if ($count%3==0) //every third row
{
echo "</tr><tr>";
}
}
}
else
{
die("No Result with query: ".$query);
}
?>
hth
chris