그룹순서와 게시판순서에 따라 출력이 되도록 수정
This commit is contained in:
@ -18,7 +18,7 @@ include_once('./_head.php');
|
||||
<!-- 메인화면 최신글 시작 -->
|
||||
<?
|
||||
// 최신글
|
||||
$sql = " select bo_table, bo_subject from {$g4[board_table]} where gr_id = '{$gr_id}' and bo_list_level <= '{$member[mb_level]}' and bo_device <> 'mobile' order by bo_table ";
|
||||
$sql = " select bo_table, bo_subject from {$g4[board_table]} where gr_id = '{$gr_id}' and bo_list_level <= '{$member[mb_level]}' and bo_device <> 'mobile' order by bo_order ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$lt_style = "";
|
||||
|
||||
@ -21,7 +21,7 @@ include_once('./_head.php');
|
||||
<!-- 메인화면 최신글 시작 -->
|
||||
<?
|
||||
// 최신글
|
||||
$sql = " select bo_table from {$g4['board_table']} where bo_device <> 'mobile' order by gr_id, bo_table ";
|
||||
$sql = " select bo_table from `{$g4['board_table']}` a left join `{$g4['group_table']}` b on (a.gr_id=b.gr_id) where a.bo_device <> 'mobile' order by b.gr_order, a.bo_order ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$lt_style = "";
|
||||
|
||||
Reference in New Issue
Block a user