Basta concatenare due cicli (tipo due while)
SE VUOI PUOI MODIFICARE QUESTO CODICE
<?
$sqlstringa="select * from menu where zona = 'd' order by codice ";
$link= mysql_connect("$db_host", "$db_login", "$db_pass");
$result= mysql_db_query ("$database", "$sqlstringa");
$numero= mysql_num_rows($result);
while ($row= mysql_fetch_array ($result)) {
?>
<table border="0" cellpadding="0" cellspacing="0" width="110" class="tablemenu">
<tr><td width="110" height="24" background="<? echo "$menu_top";?>">
<center><font color="#4E96CE"><? echo "$row[nome ]";?></font></center>
</td></tr>
<?
$sqlstringa2="select * from link_menu where menu='$row[nome]' ";
$result2= mysql_db_query ("$database", "$sqlstringa2");
$numero2= mysql_num_rows($result2);
while ($row2= mysql_fetch_array ($result2)) {
?>
<tr><td class="cellamenu">
- " target="_blank"><? echo "$row2[testo ]";?>
</td></tr>
<?
}?>
<tr><td width="110" height="24" background="<? echo "$menu_down";?>"></td></tr>
</table>
<? }
mysql_free_result ($result);
mysql_free_result ($result2);
mysql_close ($link);?>
</table>
LE COSE IN ROSSO SONO LE COSE CHE DOVRAI OBBLIGATORIAMENTE CAMBIARE... se hai problemi fammi sapere