new.php 를 특정그룹에 포함시키려면... 정보
new.php 를 특정그룹에 포함시키려면...본문
new.php 를 특정그룹에 포함시키서 그룹별 메뉴와 함께 출력하려고 그룹을 지정하려고 하니 되지 않는 군요....
어떻게 하면 되는지요.....
댓글 전체
new.php
<?
include_once("./_common.php");
$g4[title] = "최근 게시물";
include_once("./_head.php");
$sql_common = " from $g4[board_new_table] a, $g4[board_table] b
where a.bo_table = b.bo_table and b.gr_id = 그룹_아이디 and b.bo_use_search = '1' ";
<?
include_once("./_common.php");
$g4[title] = "최근 게시물";
include_once("./_head.php");
$sql_common = " from $g4[board_new_table] a, $g4[board_table] b
where a.bo_table = b.bo_table and b.gr_id = 그룹_아이디 and b.bo_use_search = '1' ";
//rolo 님 답변 감사합니다..
그런데...그룹은 top2로 하고자 했으며 위에 그룹_아이디 라고 되어있는 곳을 top2 로 바꾸어서
$sql_common = " from $g4[board_new_table] a, $g4[board_table] b
where a.bo_table = b.bo_table and b.gr_id = top2 and b.bo_use_search = '1' ";
라고 하니까 아래와 같은 오류가 뜨고 new.php 가 실행이 되지 않는 군요............
select count(*) as cnt from g4_board_new a, g4_board b, g4_group c where a.bo_table = b.bo_table and b.gr_id = top2 and b.bo_use_search = '1'
1054 : Unknown column 'top2' in 'where clause'
error file : /gnu/bbs/new.php
========
그런데...그룹은 top2로 하고자 했으며 위에 그룹_아이디 라고 되어있는 곳을 top2 로 바꾸어서
$sql_common = " from $g4[board_new_table] a, $g4[board_table] b
where a.bo_table = b.bo_table and b.gr_id = top2 and b.bo_use_search = '1' ";
라고 하니까 아래와 같은 오류가 뜨고 new.php 가 실행이 되지 않는 군요............
select count(*) as cnt from g4_board_new a, g4_board b, g4_group c where a.bo_table = b.bo_table and b.gr_id = top2 and b.bo_use_search = '1'
1054 : Unknown column 'top2' in 'where clause'
error file : /gnu/bbs/new.php
========
b.gr_id = 'top2'
가 되어야 합니다. ^^
가 되어야 합니다. ^^
//rolo 님 답변 감사합니다..
그런데/..................
b.gr_id = 'top2' 와 같이 하니까 설정한 그룹별 메뉴는 출력되는데 최신글리스트가 나타나지 않네요
제가 영 실력이 없어서....감을 못잡겠네요..
그런데/..................
b.gr_id = 'top2' 와 같이 하니까 설정한 그룹별 메뉴는 출력되는데 최신글리스트가 나타나지 않네요
제가 영 실력이 없어서....감을 못잡겠네요..