채택완료
php 논리연산자 관련 질문이있습니다!
tl_qa이 아니거나 , tl_notice01이 아니면~ 서브탑을 호출해라~ 이런걸 하고싶은데요
<?php if ($board['bo_table'] != 'tl_qa' || $board['bo_table'] != 'tl_notice01'){ ?>
이렇게 했는데 .. 앞에 부분만 먹히네요~?? (tl_qa)만
다른 방법이 있나용..?
&&로 바꾸니까 되긴 하는데.. 이해가 되지를않네여 ㅠ
Copy
<?php if ($board['bo_table'] != 'tl_qa' || $board['bo_table'] != 'tl_notice01'){ ?>
<div class="sub_visual <?php echo $hb_bg_class ?>">
<?php if ($is_admin && $bo_table) { ?>
<button type="button" id="btn-mng-head" style="">헤더 관리</button>
<?php } ?>
<div class="title_wrap">
<div class="title">
<h3 class="animated ani-start-fadeUp ani-delay-03"><?php echo get_text($hb_title); ?></h3>
<p class="sub_title animated ani-start-fadeUp ani-delay-04"><?php echo get_text($hb_subtitle) ?></p>
</div>
</div>
<p class="cover"></p>
<p class="bg"></p>
</div>
<?php } ?>
답변 2개
채택된 답변
+20 포인트
답변을 작성하려면 로그인이 필요합니다.