답변 2개 / 댓글 3개
채택된 답변
+20 포인트
참고 : https://gnustudy.com/bbs/board.php?bo_table=gnu_tip&wr_id=205
여기서 출력 순서 지정하고..

adm/board_list.php 파일에서
$sst = "a.gr_id, a.bo_table";
여기를 이렇게 수정.
$sst = "a.gr_id, a.bo_order";
그누보드 순정이고 이렇게 table로 지정되어있긴한데 출력순서는 잘나오긴하네요 ㄷㄷ뭘까요
Copy
$sql_search .= " ) ";
}
if (!$sst) {
$sst = "a.gr_id, a.bo_table";
$sod = "asc";
}
$sql_order = " order by $sst $sod ";
$sql = " select count(*) as cnt {$sql_common} {$sql_search} {$sql_order} ";
$row = sql_fetch($sql);
$total_count = $row['cnt'];
답변을 작성하려면 로그인이 필요합니다.