코멘트 중간에 글, 베너 삽입하기 정보
코멘트 중간에 글, 베너 삽입하기본문
코멘트 중간에 글이나 베너를 삽입 하려고 하는데요.
<?
$ii=$i+1;
if($ii%10=='0')echo "<div>이부분에 글이나 베너 삽입</div>";
?>
이소스는 코멘트 10개마다 글이나 베너가 나옵니다.
이거를 코멘트 5개 또는 10개째 딱 한번만!! 나오게 하려면
어떻게 수정을 해야 하나요?
방법 아시는분 계시면 적용방법 좀 알려주세요.
<?
$ii=$i+1;
if($ii%10=='0')echo "<div>이부분에 글이나 베너 삽입</div>";
?>
이소스는 코멘트 10개마다 글이나 베너가 나옵니다.
이거를 코멘트 5개 또는 10개째 딱 한번만!! 나오게 하려면
어떻게 수정을 해야 하나요?
방법 아시는분 계시면 적용방법 좀 알려주세요.
( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '247172' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )
1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
error file : /15sir/bbs/board.php