리스트에 추출할 레벨을 정하려며 어떻게 해야하나요. 정보
리스트에 추출할 레벨을 정하려며 어떻게 해야하나요.본문
<?
$bo_table='게시판명 ';//게시판명
$write_table=$g4[write_prefix].$bo_table;
$board=sql_fetch("select * from $g4[board_table] where bo_table='$bo_table'");
$board_skin_path = "{$g4['path']}/skin/board/{$board['bo_skin']}";
include_once("$board_skin_path/list.main.skin.php");
?>
위의 소스는 게시판을 메인에 불러오는 소스입니다.
위의 소스에 레벨을 첨가 하려면 어떻게 해야하나요?
즉, 글쓴이 레벨이 3이면 A 리스트, 레벨이 4이면 B리스트, 레벨5이면 C리스트가
나오도록 하고 싶습니다.
게시판은 같은 게시판 이고요.
감사합니다.
$bo_table='게시판명 ';//게시판명
$write_table=$g4[write_prefix].$bo_table;
$board=sql_fetch("select * from $g4[board_table] where bo_table='$bo_table'");
$board_skin_path = "{$g4['path']}/skin/board/{$board['bo_skin']}";
include_once("$board_skin_path/list.main.skin.php");
?>
위의 소스는 게시판을 메인에 불러오는 소스입니다.
위의 소스에 레벨을 첨가 하려면 어떻게 해야하나요?
즉, 글쓴이 레벨이 3이면 A 리스트, 레벨이 4이면 B리스트, 레벨5이면 C리스트가
나오도록 하고 싶습니다.
게시판은 같은 게시판 이고요.
감사합니다.
( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '283158' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )
1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
error file : /15sir/bbs/board.php