픽

전광판 글이 시간이 지나면 엇갈려 보이는데요..

안녕하세요.
 
전광판에 대한 두가지 질문입니다..
 
1. 전광판 최신글을 아래와 같이 코드를 넣어 사용해봣는데요
 <?=latest_scroll("scroll", 12,  40,"1,20");?>
 
사이트를 그냥 둔체 10분정도 지나면 첨에 잘 보였던 한줄이 좀 위로 가고 밑에 문장이
좀 올라와있고..보기 않좋으네요.. 이거 저거 수치를 바꾸어 보았는데도 잘안되네요..
 
어떻게 하면 계속 놔두어도 고정으로 한문장만 잘 보일수 있는지요?
 
2. new_scroll_latest.lib.php 보면
 $sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id
        from $g4[board_new_table] a, $g4[board_table] b,  $g4[group_table] c
        where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = '1' and  a.wr_id = a.wr_parent
        order by a.bn_id desc limit 0,$rows";
이렇게 하면 전체 그룹의 최신글이 나오는데...한그룹만 보이게 할수는 없는지요..
 
미진한 실력이기에 부탁 드려봅니다..

댓글 4개

$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id
from $g4[board_new_table] a, $g4[board_table] b, $g4[group_table] c
where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = '1' and a.wr_id = a.wr_parent
order by a.bn_id desc limit 0,$rows";

==>


$sql = " select a.*, b.bo_subject, c.gr_subject
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' and a.wr_id = a.wr_parent
order by a.bn_id desc limit 0,$rows";
음..기쁜마음에 바로 적용해보았습니다만..아래와 같이 에러가 나네요..

select a.*, b.bo_subject, c.gr_subject from g4_board_new a, g4_board b where a.bo_table = b.bo_table and b.gr_id = 'general' and b.bo_use_search = '1' and a.wr_id = a.wr_parent order by a.bn_id desc limit 0,12

1109 : Unknown table 'c' in field list
rolo님의 위의 댓글 아래부분에서 누락을 시키셨나 봅니다....^^

$sql = " select a.*, b.bo_subject, c.gr_subject
from $g4[board_new_table] a, $g4[board_table] b, $g4[group_table] c
where a.bo_table = b.bo_table and b.gr_id = "그룹아이디" and b.bo_use_search = '1' and a.wr_id = a.wr_parent
order by a.bn_id desc limit 0,$rows";
네 맞습니다. 적용하니 잘 됩니다! 좋은 밤되시고.. 감사합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
06-12-11 조회 1,934
06-12-11 조회 1,595
06-12-11 조회 1,739
06-12-11 조회 1,995
06-12-11 조회 1,767
06-12-11 조회 1,661
06-12-11 조회 1,722
06-12-11 조회 1,624
06-12-11 조회 1,593
06-12-11 조회 1,770
06-12-11 조회 1,620
06-12-11 조회 1,941
06-12-11 조회 1,635
06-12-11 조회 1,621
06-12-10 조회 2,419
06-12-10 조회 1,586
06-12-10 조회 1,738
06-12-10 조회 1,823
06-12-10 조회 2,514
06-12-10 조회 1,902