0) { list($groups_name) = mysql_fetch_array($result); $page_name_add = $groups_name; }; mysql_free_result($result); } else { $result = mysql_query("SELECT photos_name FROM photos WHERE groups_id = $r_gr ORDER BY photos_id ASC LIMIT ".($r_id - 1).",1"); if (mysql_num_rows($result) > 0) { list($photos_name) = mysql_fetch_array($result); $page_name_add = $photos_name; }; mysql_free_result($result); }; include "../inc/header.php"; ?>
Все свежие фотки смотрите на photo.andrushka.ru !


1) echo "
"; echo "$groups_name
"; } else if ($groups_type == 2) echo "   $groups_name
"; }; mysql_free_result($result); } else if (!isset($r_id)) { // List of all photos in this group echo ""; $result = mysql_query("SELECT photos_id, groups_id, photos_file, photos_source, photos_name FROM photos WHERE groups_id = $r_gr ORDER BY photos_id"); for ($i = 1; $i <= mysql_num_rows($result); $i++) { list($photos_id, $groups_id, $photos_file, $photos_source, $photos_name) = mysql_fetch_array($result); if ($photos_name == "") $photos_name = "Фотка $photos_id"; echo ""; if ($i < mysql_num_rows($result)) if ($i % 4 == 0) echo ""; }; echo "
"; echo "\"$photos_name\"
".$photos_name."
"; mysql_free_result($result); echo "
"; echo "список групп"; echo "
"; } else { $result = mysql_query("SELECT photos_id FROM photos WHERE groups_id = $r_gr"); $result_num = mysql_num_rows($result); mysql_free_result($result); $result = mysql_query("SELECT photos_id, groups_id, photos_file, photos_source, photos_name FROM photos WHERE groups_id = $r_gr ORDER BY photos_id ASC LIMIT ".($r_id - 1).",1"); if (mysql_num_rows($result) > 0) { list($photos_id, $groups_id, $photos_file, $photos_source, $photos_name) = mysql_fetch_array($result); if ($photos_name == "") $photos_name = "Фотка $photos_id"; echo "
"; if ($r_id > 1) echo "
<<<
"; echo "

".$photos_name."

"; if ($r_id < $result_num) echo "
>>>
"; echo "
\"$photos_name\""; }; mysql_free_result($result); echo "
"; echo "список фоток"; echo ""; echo "список групп"; echo "
"; }; ?>