Errore: ".mysql_error()); mysql_select_db($nome_db,$conn) or die ("Errore: ".mysql_error()); $q_gallery="SELECT * FROM gallery WHERE gallery_ID>0 AND categoria='2' ORDER BY time DESC"; $r_gallery=mysql_query($q_gallery,$conn) or die ("Errore: ".mysql_error()); while ($a_gallery=mysql_fetch_array($r_gallery)){ $nome_foto=stripslashes($a_gallery[nome_IT]); ?>