=$start_num) { $start_num=$start_num-($sum-$division_data['num']); $_dbTimeStart = getmicrotime(); $que="SELECT * FROM {$t_board}_{$id} WHERE `division`='{$division}' AND `headnum`<0 ORDER BY headnum,arrangenum LIMIT {$start_num}, {$page_num}"; $result=mysqli_query($connect,$que) or error(mysqli_error($connect)); $_dbTime += getmicrotime()-$_dbTimeStart; $check1=1; $returnNum = mysqli_num_rows($result); if($returnNum>=$page_num) { break; } else { if($division>1) { $division--; $minus=$page_num-$returnNum; $_dbTimeStart=getmicrotime(); $que2="SELECT * from $t_board"."_$id where division=$division and headnum!=0 order by headnum,arrangenum limit $minus"; $result2=mysqli_query($connect,$que2) or error(mysqli_error($connect)); $_dbTime += getmicrotime()-$_dbTimeStart; $check2=1; break; } } } } } else { $que="SELECT * FROM {$t_board}_{$id} {$s_que} ORDER BY {$select_arrange} {$desc} {$add_on} LIMIT {$start_num}, {$page_num}"; $_dbTimeStart = getmicrotime(); $result=mysqli_query($connect,$que) or error(mysqli_error($connect),"","ERR","/abba/holyboard.php",TRUE); $_dbTime += getmicrotime()-$_dbTimeStart; } } if($is_admin) { $_dbTimeStart = getmicrotime(); $board_result=mysqli_query($connect,"SELECT no,name from $admin_table where no!='$setup[no]'"); $_dbTime += getmicrotime()-$_dbTimeStart; } $print_page=""; $show_page_num=$setup['page_num']; $start_page=(int)(($page-1)/$show_page_num)*$show_page_num; $i=1; $a_1_prev_page= "