$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' ";
피터팬
19년 전
//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'
댓글 4개
<?
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' ";
그런데...그룹은 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' 와 같이 하니까 설정한 그룹별 메뉴는 출력되는데 최신글리스트가 나타나지 않네요
제가 영 실력이 없어서....감을 못잡겠네요..