if (!$page && $no) {
$real_temp = @mysql_fetch_array(mysql_query("select * from $t_board"."_$id where no='$no'"));
$real_no_query = @mysql_query("select no, headnum from $t_board"."_$id where division='$real_temp[division]' order by headnum,arrangenum",$connect);
$i_temp = 0;
while ($real_no_temp = mysql_fetch_array($real_no_query)) {
댓글 5개
근데 이거 그누보드가 맞나요? zb라....;;
$real_temp = @mysql_fetch_array(mysql_query("select * from $t_board"."_$id where no='$no'"));
$real_no_query = @mysql_query("select no, headnum from $t_board"."_$id where division='$real_temp[division]' order by headnum,arrangenum",$connect);
$i_temp = 0;
while ($real_no_temp = mysql_fetch_array($real_no_query)) {
$i_temp ++;
if ($real_no_temp[no] == $no) {
break;
}
}
if ($real_temp[headnum] <= -2000000000) {
$real_no = $page_num;
} elseif ($real_temp[division]>1) {
$real_no = ($real_temp[division] * 5000) - 5000 + $i_temp;
} else {
$real_no = $i_temp;
}
$page = ceil($real_no / $page_num);
}
zb로는 이런 내용입니다 ㅡㅜ;
힌트는 요기까지만...나머진 찾아서 응용하십시오~~~~!
자동으로 페이지를 찾아주는...;; 그런질문이였습니다;;
(흠냐... 내가 모르는 뭔가 미지의 지식이 담겨져있는 답변이라면 모르겠지만요 ㅜㅜ)