분류(카테고리) 선택시 공지사항 보이기
http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=16202&sca=&sfl=wr_subject%7C%7Cwr_content&stx=공지사항&page=2
if (!$sca && !$stx) {
$arr_notice = explode(',', trim($board['bo_notice']));
for ($k=0; $k<count($arr_notice); $k++) {
if (trim($arr_notice[$k])=='') continue;
$row = sql_fetch(" select * from {$write_table} where wr_id = '{$arr_notice[$k]}' ");
if (!$row['wr_id']) continue;
$list[$i] = get_list($row, $board, $board_skin_url, G5_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']);
$list[$i]['is_notice'] = true;
$i++;
}
}
else if ($sca && !$stx) {
$arr_notice = explode(',', trim($board['bo_notice']));
for ($k=0; $k<count($arr_notice); $k++) {
if (trim($arr_notice[$k])=='') continue;
$row = sql_fetch(" select * from {$write_table} where wr_id = '{$arr_notice[$k]}' and ca_name = '{$sca}' ");
if (!$row['wr_id']) continue;
$list[$i] = get_list($row, $board, $board_skin_url, G5_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']);
$list[$i]['is_notice'] = true;
$i++;
}
}
else if 이후 추가
전체 목록에서는 글들이 보이는데 분류(카테고리)를 선택하면 글도 없어지고 공지도 보이지 않습니다.
어떤 부분이 문제인지 조언 부탁드립니다..ㅜㅜ
|
답변 1개 / 댓글 1개
불량학생™
2013-12-24 (화) 15:40:58
if(!$sca && !$stx) 에 해당하는 if문을 없애시던지 아니면 else구문에도 위 글을 넣으시던지 하시면 나오실건데요
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.