답변 3개
블랙캣77
3년 전
isset($co['gu~']) && trim($co['gu~']) != "" 로 조건을 한번 해보세요.
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
파트라슈님
3년 전
댓글을 작성하려면 로그인이 필요합니다.
3년 전
조건문에 if(!empty($co['guide_contact'])) { }
추가해보세요
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
파트라슈님
3년 전
아래처럼 적용했는데 guide_contact 내용이 들어있는 상태인데 노출이 안되요 ㅠㅠ
제가 잘못적은걸까요?
[code]<?php if(!empty($co['guide_contact'])) { ?>
<div>sssssss<?php
$sql = " select * from {$g5['content_table']} where co_id = 'guide_contact' ";
$co = sql_fetch($sql);
echo conv_content($co['co_content'], $co['co_html'], $co['co_tag_filter_use']);
?></div>
<?php } else { ?>
빈내용이면 출력않함
<?php } ?>
[/code]
제가 잘못적은걸까요?
[code]<?php if(!empty($co['guide_contact'])) { ?>
<div>sssssss<?php
$sql = " select * from {$g5['content_table']} where co_id = 'guide_contact' ";
$co = sql_fetch($sql);
echo conv_content($co['co_content'], $co['co_html'], $co['co_tag_filter_use']);
?></div>
<?php } else { ?>
빈내용이면 출력않함
<?php } ?>
[/code]
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
[code]<?php isset($co['guide_contact']) && trim($co['guide_contact']) != "" { ?>
<div>sssssss<?php
$sql = " select * from {$g5['content_table']} where co_id = 'guide_contact' ";
$co = sql_fetch($sql);
echo conv_content($co['co_content'], $co['co_html'], $co['co_tag_filter_use']);
?></div>
<?php } else { ?>
빈내용이면 출력않함
<?php } ?> [/code]