Фотоальбом
$query_album_l = "SELECT * FROM folder_album LIMIT 40"; mysql_query("SET NAMES UTF8"); $res_album_l = mysql_query($query_album_l); while ($row_album_l = mysql_fetch_array($res_album_l)) { $query_album_l_list = "SELECT * FROM album_foto WHERE Id_Folder='".$row_album_l["Id"]."'"; mysql_query("SET NAMES UTF8"); $res_album_l_list = mysql_query($query_album_l_list); while ($row_album_l_list = mysql_fetch_array($res_album_l_list)) { $js++; $img.=''; if ($js==4){ $js=0; $p=''; $img.=$p; } } } print $img; ?>