codice:
<?php
$query = "SELECT DISTINCT categoria, nome FROM prodotti";
$result = mysql_query($query) or die(mysql_error()) ;

while($row = mysql_fetch_assoc($result))  {

if ($row['categoria'] == 'prodotti') {
 
    echo "<a href=\"viewcat.php?nome={$row['nome']}\">- {$row['nome']} </a> 
";
  
    }
}

mysql_free_result($result);
?>
sempre che la categoria che vuoi stampare si chiami "prodotti"....

metti il codice tra tag in modo che sia piu' leggibile.