인크루드에 대한 질문입니다

· 22년 전 · 625 · 2
<?
if($co_id == introduction01 or introduction02 or introduction03 or introduction04) {
$TITLE = 'introduction';
}
elseif($co_id == present01 or present02 or present03 or present04 or present05) {
$TITLE = 'present';
}
elseif($co_id == information01 or information02 or information03 or information04) {
$TITLE = 'information';
}
elseif($bo_table == comm01 or comm02 or comm03 or comm04) {
$TITLE = 'comm';
}
?>

<BR>
<? include "left_menu_$TITLE.php"; ?>

이런식으로 $bo_table, $co_id 값이 변할때마다 새로운문서를 읽어올려고 하는데.. 잘안되네요.. 뭐가 문제가 되는지 잘 몰겠네요..
암튼 뭐가 문제인지 좀 갈켜주세요//
|

댓글 2개

다들 전문가가 되어가시네요^^
<?
if(($co_id == "introduction01") or ($co_id == "introduction02") or ($co_id == "introduction03") or ($co_id == "introduction04")) {
$TITLE = 'introduction';
}
elseif(($co_id == "present01") or ($co_id =="present02") or ($co_id =="present03") or ($co_id =="present04") or ($co_id =="present05")) {
$TITLE = 'present';
}
elseif(($co_id == "information01") or ($co_id == "information02") or ($co_id == "information03") or ($co_id == "information04")) {
$TITLE = 'information';
}
elseif(($bo_table == "comm01") or ($bo_table == "comm02") or ($bo_table == "comm03") or ($bo_table == "comm04")) {
$TITLE = 'comm';
}
?>
<br>
<?include "left_menu_".$TITLE.".php";?>

구문이 약간 틀렸습니다. 이렇게 수정해 보세요.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누3질답

+
제목 글쓴이 날짜 조회
22년 전 조회 863
22년 전 조회 745
22년 전 조회 571
22년 전 조회 729
22년 전 조회 612
김영우
22년 전 조회 524
22년 전 조회 749
&&nbsp;
22년 전 조회 904
22년 전 조회 902
22년 전 조회 626
22년 전 조회 624
22년 전 조회 768
22년 전 조회 953
22년 전 조회 552
22년 전 조회 638
22년 전 조회 700
22년 전 조회 667
22년 전 조회 706
22년 전 조회 710
22년 전 조회 933
🐛 버그신고