Ciao, semplicemente creandoti una tabella...
Codice PHP:
function menuDinamico(){
$result = mysql_query("SELECT DISTINCT Category FROM prodotti ORDER by Category ASC");
echo "<table>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
$conta+=1;
$stringa=$row['Category'];
$stringa=str_replace("'","",$stringa);
$catArrey=explode("/",$stringa);
$cValore0=$catArrey[0];
if($cValore0!=$cValore){
//$menu.= "[b]".$catArrey[0]."[/b]
<span style='font-size:9px;'>".sottocat($catArrey[0])."</span>
";
echo "<td>[b]".$catArrey[0]."[/b]</td><td><span style='font-size:9px;'>".sottocat($catArrey[0])."</span></td>";
$cValore=$catArrey[0];
echo "</tr>";
}
echo "</table>";
}
return $menu;
}