인크루드에 대한 질문입니다 정보
그누보드 인크루드에 대한 질문입니다본문
<?
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 값이 변할때마다 새로운문서를 읽어올려고 하는데.. 잘안되네요.. 뭐가 문제가 되는지 잘 몰겠네요..
암튼 뭐가 문제인지 좀 갈켜주세요//
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 값이 변할때마다 새로운문서를 읽어올려고 하는데.. 잘안되네요.. 뭐가 문제가 되는지 잘 몰겠네요..
암튼 뭐가 문제인지 좀 갈켜주세요//
댓글 전체
다들 전문가가 되어가시네요^^
<?
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";?>
구문이 약간 틀렸습니다. 이렇게 수정해 보세요.
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";?>
구문이 약간 틀렸습니다. 이렇게 수정해 보세요.