= '".$prev."' LIMIT 3"; $res = mysql_query ($sql); $dsc[] = ""; $from[] = ""; $i=1; while ($rw = mysql_fetch_array ($res)) { $dsc[$i] = $rw['username']; $from[$i] = $rw['user_from']; if ($rw['user_id'] != $photo) echo "\n"; else { echo "\n"; $dsc[$i] = "Вернуться в галерею"; $from[$i] = ""; } $i++; } echo "\n\n"; for ($k = 1; $k <= 3; $k++) { echo "\n"; } ?>
".$dsc[$i].", ".$from[$i]."View thumbnails
".$dsc[$k]."
".$from[$k]."
Quick jump:

\n"; // список $sql = "SELECT `user_id`, `username` FROM `phpbb_users` WHERE user_photo_type != '0' ORDER BY `username` LIMIT ".$hstart.", ".$maxh; $res = mysql_query ($sql); while ($rw = mysql_fetch_array ($res)) { $rightcolumn .= "".$rw['username']."
\n"; } $prev = "назад"; $next = "вперёд"; if ($hstart > 0) $prev = "назад"; if (($hpage * $maxh) < $count) $next = "вперёд"; $rightcolumn .= "
\n
".$prev." | ".$next."
\n"; include ("../bottom.php"); ?>