'최신글에 답변 안나오게 하기' 안되는데 문제있어요?
밑에처럼 팁 게시판에서 하면 된다고 했는데 안되는데요...
세번째처럼 고쳐서 그대로 했는데 그냥 나오던데... .왜이런거죠?
위에 사진처럼 나와서 헷갈려요.... 방법 좀 제발 알려주세요...
latest.lib.php파일에 DB에서 불러오는 부분이 있습니다.
$sql = " select *
from {$cfg[write_table_prefix]}{$bo_table}
where wr_comment = 0
order by wr_id desc limit 0, $rows ";
위 코드의 세번째 라인을 아래와 같이 고칩니다.
where wr_comment = 0 and wr_reply <> 'A'
또는 아래와 같이 고쳐도 무방합니다.
where wr_comment = 0 and wr_reply != 'A'
$sql = " select *
from {$cfg[write_table_prefix]}{$bo_table}
where wr_comment = 0
order by wr_id desc limit 0, $rows ";
위 코드의 세번째 라인을 아래와 같이 고칩니다.
where wr_comment = 0 and wr_reply <> 'A'
또는 아래와 같이 고쳐도 무방합니다.
where wr_comment = 0 and wr_reply != 'A'
첨부파일
댓글 8개
19년 전
select * from {$cfg[write_table_prefix]}{$bo_table} where wr_comment=0 and wr_reply <> 'A' order by wr_id desc limit 0 ,$rows ;
답변글 출력이 안되는데요..
답변글 출력이 안되는데요..
19년 전
안되요 ㅠ,ㅠ 왜 안되지...
19년 전
latest.lib.php
// 최신글 추출
function latest($skin_dir='', $bo_table, $rows=10, $len=40)
{
global $latest_skin, $cfg;
$tmp_latest_skin = $latest_skin;
// 스킨디렉토리값이 넘어왔다면
if ($skin_dir) {
$latest_skin = "./bbs/skin/latest/$skin_dir";
}
$sql = " select * from $cfg[table_board] where bo_table = '$bo_table' ";
$bo = sql_fetch($sql);
$bo_subject = $bo[bo_subject];
$sql = " select *
from {$cfg[write_table_prefix]}{$bo_table}
where wr_comment = 0 and wr_reply <> 'A'
order by wr_id desc limit 0, $rows ";
$result = sql_query($sql);
확인해본결과 잘되는데요...
// 최신글 추출
function latest($skin_dir='', $bo_table, $rows=10, $len=40)
{
global $latest_skin, $cfg;
$tmp_latest_skin = $latest_skin;
// 스킨디렉토리값이 넘어왔다면
if ($skin_dir) {
$latest_skin = "./bbs/skin/latest/$skin_dir";
}
$sql = " select * from $cfg[table_board] where bo_table = '$bo_table' ";
$bo = sql_fetch($sql);
$bo_subject = $bo[bo_subject];
$sql = " select *
from {$cfg[write_table_prefix]}{$bo_table}
where wr_comment = 0 and wr_reply <> 'A'
order by wr_id desc limit 0, $rows ";
$result = sql_query($sql);
확인해본결과 잘되는데요...
19년 전
위에꺼 그대로 붙여넣기 했는데 안되요 ㅠ,ㅠ gnu/lib/latest.lib.php 파일 수정했는데...
그럼 답변이라는 이미지 나오게 하는 방법도 안되고, 진짜 돌아버리겠어여~~~
그럼 답변이라는 이미지 나오게 하는 방법도 안되고, 진짜 돌아버리겠어여~~~
19년 전
홈페이지 주소를 알켜주심이 좋을듯 싶네요...
19년 전
http://www.digitalplay.co.kr 입니당...
암만해도 안되던데여....
암만해도 안되던데여....
19년 전
거참 바꾸긴 한건가요?? 혹시 메신져라도 있나요???
hkrsone@hotmail.com 추가하세요...
hkrsone@hotmail.com 추가하세요...
19년 전
추가했습니다. 님 네이트온 아니던데여^^
msn으로 했어여~
msn으로 했어여~
게시판 목록
그누3질답
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 공지 | 15년 전 | 7800 | ||
| 9323 | 19년 전 | 2243 | ||
| 9322 |
|
19년 전 | 2635 | |
| 9321 | 19년 전 | 2112 | ||
| 9320 | 19년 전 | 2828 | ||
| 9319 | 19년 전 | 2156 | ||
| 9318 | 19년 전 | 2149 | ||
| 9317 | 19년 전 | 2260 | ||
| 9316 | 19년 전 | 2566 | ||
| 9315 |
|
19년 전 | 1873 | |
| 9314 | 19년 전 | 2163 | ||
| 9313 |
진짜사나이
|
19년 전 | 3265 | |
| 9312 | 19년 전 | 2501 | ||
| 9311 |
|
19년 전 | 3007 | |
| 9310 | 19년 전 | 2287 | ||
| 9309 | 19년 전 | 3435 | ||
| 9308 | 19년 전 | 2374 | ||
| 9307 |
일상밖으로
|
19년 전 | 2511 | |
| 9306 | 19년 전 | 2238 | ||
| 9305 |
자반고등어
|
19년 전 | 2448 | |
| 9304 |
skypic
|
19년 전 | 2221 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기