최신글 관련 질문입니다. 정보
최신글 관련 질문입니다.본문
최신글에 남자만 호출할려면 아래처럼
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입니다.
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, "남자,여자")
이렇게 해보세요. 잘 되려나?
근데 성별이 남자,여자 두개만 있으니까 그냥 전부 출력하면 되는거 아닌가요? 양성도 있는건가?
이걸
if($options) $options="and wr_10 in ('$options')";
이렇게 하고 latest($skin_dir, $bo_table, $rows, $subject_len, "남자,여자")
이렇게 해보세요. 잘 되려나?
근데 성별이 남자,여자 두개만 있으니까 그냥 전부 출력하면 되는거 아닌가요? 양성도 있는건가?