Hello, i have a page with links on it that are generated by the a catagory field in my db. So selecting one of these links will show images and descriptions in that catagory, except that it is showing multiple instances of the catagory links. How do i change my code so that it only echos one instance of the catagory? thanks stu
$db = mysql_connect("localhost", "root");
mysql_select_db("new",$db);
$result = mysql_query("SELECT * FROM general",$db);
while ($myrow = mysql_fetch_array($result)) {
printf("<a href=\"$PHP_SELF?catagory=$myrow[catagory]&go=yes\">%s </a><br>", $myrow["catagory"]);