채택완료

간단한질문좀드리겠습니다.

2018-07-18 (수) 18:53:04 2,428

코드를 아예몰라서요 ㅠㅠ

 if($bo_table != 'farthing')

이부분에요 추가적으로 farthing1 추가하고싶은데 어떻게해야하나요 

Copy
if($bo_table != 'farthing') { include_once(G5_BBS_PATH.'/_head.php'); }
|

답변 2개 / 댓글 1개

채택된 답변
+20 포인트

https://www.w3schools.com/php/php_operators.asp

Copy
if ($bo_table != 'farthing' && $bo_table != 'farthing1') {
    include_once(G5_BBS_PATH.'/_head.php'); 
}

아래와 같이 해주세요.

if($bo_table != 'farthing') {

   if($bo_table == 'farthing1) {

     include_once(G5_BBS_PATH.'/_head2.php');

   } else {

     include_once(G5_BBS_PATH.'/_head.php');

   }

}

답변에 대한 댓글 1개

2018-07-18 (수) 19:04:32
오류가뜨네요 ㅠㅠ include_once(G5_BBS_PATH.'/_head2.php');

2번헤더가없어서 그런거같은데요 ㅠㅠ

답변을 작성하려면 로그인이 필요합니다.