<?
$start_page = floor(($current_page - 1) / $page_list_size)
* $page_list_size + 1;
$end_page = $start_page + $page_list_size -1;
if ($total_page < $end_page) $end_page = $total_page;
if ($start_page >= $page_list_size)
{
$prev_list = ($start_page - 2)*$page_size;
echo "<a href=\"$php_self?no=$prev_list\">◀</a>\n";
}
for ($i=$start_page; $i <= $send_page; $i++) {
$page= ($no! = $page )
echo "<a href="$php_self?no=$page">";
}
echo "$i";
if ($no!=$page) {
echo "</a>";
}
}
if ($total_page > $end_page) {
$next_list = $end_page * $page_size;
echo "<a href="$php_self?no=$next_list">▶</a><p>";
}
?>
이부분이 실행이안되고
= $page_list_size) { $prev_list = ($start_page - 2)*$page_size; echo "◀\n"; } for ($i=$start_page; $i <= $send_page; $i++) { $page= ($no! = $page ) echo ""; } echo "$i"; if ($no!=$page) { echo ""; } } if ($total_page > $end_page) { $next_list = $end_page * $page_size; echo "▶ 그냥이렇게떠버리는데 어디가 문제일까요