전광판 글이 시간이 지나면 엇갈려 보이는데요.. 정보
전광판 글이 시간이 지나면 엇갈려 보이는데요..본문
안녕하세요.
전광판에 대한 두가지 질문입니다..
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";
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, 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";
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
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";
$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";
네 맞습니다. 적용하니 잘 됩니다! 좋은 밤되시고.. 감사합니다.