크

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

· 2003-07-14 (월) 12:23:09 · 692 · 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질답

9,564건
+
제목 글쓴이 날짜 조회
03-07-14 조회 988
03-07-14 조회 693
03-07-14 조회 699
03-07-14 조회 841
03-07-14 조회 1,040
03-07-14 조회 636
03-07-14 조회 715
03-07-14 조회 778
03-07-13 조회 741
03-07-13 조회 779
03-07-13 조회 787
03-07-13 조회 1,006
03-07-13 조회 712
03-07-13 조회 742
03-07-12 조회 748
&&nbsp;
03-07-12 조회 817
03-07-12 조회 690
03-07-12 조회 721
03-07-12 조회 786
03-07-12 조회 1,026