크

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

· 2003-07-14 (월) 12:23:09 · 678 · 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개

2003-07-15 (화) 23:14:34
다들 전문가가 되어가시네요^^
2003-07-14 (월) 18:15:45
<?
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 조회 977
03-07-14 조회 679
03-07-14 조회 686
03-07-14 조회 832
03-07-14 조회 1,031
03-07-14 조회 625
03-07-14 조회 704
03-07-14 조회 768
03-07-13 조회 730
03-07-13 조회 764
03-07-13 조회 776
03-07-13 조회 997
03-07-13 조회 700
03-07-13 조회 729
03-07-12 조회 736
&&nbsp;
03-07-12 조회 808
03-07-12 조회 679
03-07-12 조회 707
03-07-12 조회 777
03-07-12 조회 1,016