$picnow=1; $maxP=5; $dirname = "projectos/$id"; $dh = opendir($dirname) or die("couldn't open directory"); echo " \n"; echo ""; while ($file = readdir($dh)) { if($file != '.' and $file != ".." and !is_dir($file)){ echo ""; $picnow++; if($picnow>=$maxP){ $picnow=1; echo ""; echo "";}
"; echo "\n"; echo "