Hello,
I have a table as follows:
Name | Type | Color | Notes
And I want my php page to show all the differnt "type"s that I have. I did this:
$result = mysql_query("SELECT * FROM tablename ORDER BY '$Type",$db);
$myrow = mysql_fetch_array($result);
echo "<tr><td><a href=\"type.php?Type=$myrow[Type]\">$myrow[Type]</a></td></tr>";
But it will show muliples of "type"s when there are more than one name associated with each one. How can I get php to check to see if it has not already found a type?