"); while($row=mysql_fetch_object($result)){ $img=$row->img; echo("\"$alt\""); $count++; if(is_int($count/7)){ echo("
"); } } echo(""); ?>