"); $q=mysql_query('Select pid,aid,filepath,filename from cantieri_pictures where aid='.$aid.' order by pid desc limit 0,'.$totali.''); while ($r=mysql_fetch_object($q)) { $conta++; echo(""); echo("pid\">filepath/thumb_$r->filename> "); echo(""); if($conta>$xriga){echo(""); $conta=1;} } echo(""); echo("

Vedi tutte le foto   Invia immagini

"); ?>