codice:
for ($i=1;$i<3;$i++)
{

 $rec=mysql_query("select nome,prezzo,descr,id from $cat_nome[$i] where affss_attribute='1'",$db);
 while($mx=mysql_fetch_array($rec))
 {
  $ray[$x]=$mx['nome'];
  $x++;
  echo $mx['nome'];
 }

}
mi stampa solo il contenuto della prima tabella che viene interrogata,
cioe $cat_nome[1]..

come mai non stampa ne $cat_nome[2]ecc ecc???