최신글 관련 질문입니다. > 그누4 질문답변

그누4 질문답변

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

최신글 관련 질문입니다. 정보

최신글 관련 질문입니다.

본문

최신글에 남자만 호출할려면 아래처럼

latest.lib.php 22행 수정
if($options) $options="and wr_10='$options'";
$sql = " select * from $tmp_write_table where wr_is_comment = 0 $options order by wr_num limit 0, $rows ";


latest($skin_dir, $bo_table, $rows, $subject_len, "남자") <-- 이렇게 호출하는데

남자하고 여자 두개만 동시에 호출 할려면 어떻게 해야 됩니까?
둘다 wr_10입니다.
  • 복사

댓글 전체

if($options) $options="and wr_10='$options'";
이걸
if($options) $options="and wr_10 in ('$options')";

이렇게 하고 latest($skin_dir, $bo_table, $rows, $subject_len, "남자,여자")
이렇게 해보세요. 잘 되려나?

근데 성별이 남자,여자 두개만 있으니까 그냥 전부 출력하면 되는거 아닌가요? 양성도 있는건가?
© SIRSOFT
현재 페이지 제일 처음으로