인클루드하는 방법 좀 가르쳐 주세요. ㅠ.ㅠ

<?
if($itemtitle[1]) { echo "
<tr>
<td colspan=2>
<textarea name='wr_1' rows=15 style='width:99%; line-height=250%; word-break:break-all;' itemname='추가' class='textarea lh'>$write[wr_1]</textarea>
</td>
</tr>

<tr>
<td colspan=2 align=right>
<? include "$board_skin/emo_wr_1.php";?> <= 이놈을 어떻게 해야하죠?
</td>
</tr>"; }
?>

=============================================================

위 소스를 그대로 적용하면 애러가 발생합니다.

<? include "$board_skin/emo_wr_1.php";?>

이 놈이 문제인데 이걸 어떻게 적용해야 하죠?
|

댓글 3개

와우맨님, sjsjin님 감사합니다.

덕분에 잘 해결했습니다.

좋은 저녁 되세요......

^ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ^
위에처럼 해도되고, 아래처럼도 되고..여러가지 방법이 있습니다.

<?
if($itemtitle[1]){
echo "
<tr>
<td colspan=2>
<textarea name='wr_1' rows=15 style='width:99%; line-height=250%; word-break:break-all;' itemname='추가' class='textarea lh'>$write[wr_1]</textarea>
</td>
</tr>

<tr>
<td colspan=2 align=right>"; <- echo 출력 종료하고..
include "$board_skin/emo_wr_1.php"; <= 이놈을 이렇게..
echo "</td> <- 다시 echo 출력하고..
</tr>";
}
?>
<?
if($itemtitle[1]) { ?>
<tr>
<td colspan=2>
<textarea name='wr_1' rows=15 style='width:99%; line-height=250%; word-break:break-all;' itemname='추가' class='textarea lh'> <? $write[wr_1] ?></textarea>
</td>
</tr>

<tr>
<td colspan=2 align=right>
<? include "$board_skin/emo_wr_1.php";?>
</td>
</tr>
<? } ?>


이렇게 하면 되지 않을까요??
<? ?> 이 부분의 열고 닫는 부분이 틀린듯 합니다 <? ?> 않에 다시 <? ?>는 올수 없는것으로 알고 있습니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누3질답

+
제목 글쓴이 날짜 조회
21년 전 조회 413
21년 전 조회 351
21년 전 조회 497
21년 전 조회 445
21년 전 조회 404
21년 전 조회 425
21년 전 조회 1,094
21년 전 조회 556
21년 전 조회 558
21년 전 조회 691
21년 전 조회 470
21년 전 조회 644
21년 전 조회 460
21년 전 조회 350
21년 전 조회 608
21년 전 조회 448
21년 전 조회 385
21년 전 조회 702
21년 전 조회 345
21년 전 조회 373