테스트 사이트 - 개발 중인 베타 버전입니다

소스 문의 드립니다.

· 11년 전 · 2183 · 4
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :

[code]

<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
echo "JUMPOPREMIUM.item[$j] = JUMPOPREMIUM.item[$j] + \"<td width='$col_width%' height='110' align='center' valign='top'>".$list[$i][icon_reply]."<table width='130' cellpadding='0' cellspacing='0' border='0' style='background-repeat:no-repeat; background-image:url(./img/bg.gif);'><tr><td valign='top' align='center' height='100'><table width='100%' cellpadding='0' cellspacing='0' border='0'><tr><td valign='middle' align='center' height='36'><a href='{$list[$i]['href']}'><div style='font-size:11px; font-family:돋움, 굴림; letter-spacing:-0.1em; word-break:break-all; color:#000; width:118px; font-weight:bold;'><font color=000>{$list[$i]['wr_subject']}</font></a></div></td></tr><tr><td valign='middle' align='center' height='65'><div style='font-size:11px; width:110px; text-align:center; font-family:돋움, 굴림; color:#000; word-break:break-all; letter-spacing:-0.05em;'><a href='{$list[$i]['href']}'><font color=000>{$list[$i]['wr_10']} / {$list[$i]['wr_2']} / {$list[$i]['wr_1']} / ".intval($list[$i]['wr_13'])."㎡</font><여기요></a></div></td></tr></table></td></tr></table></td>\";";
if($i+1 == count($list))
echo "JUMPOPREMIUM.item[$j] = JUMPOPREMIUM.item[$j] + \"</tr></table>\";";

}




?>

[/code]



위 소스에 <여기요> 부분에 아래 소스를 넣어야 하는데 에러가 납니다.
위 소스와 코드형식이 달라서 그런데 대충 넣으면 데이터는 나오는데 IF를 인식을 못합니다.

[code]
<? if ($list[$i]['wr_21'] != '') { ?>
<?=$list[$i]['wr_21']?>
<? } ?>
<? if ($list[$i]['wr_22'] != '') { ?>
<?=$list[$i]['wr_22']?>
<? } ?>
<? if ($list[$i]['wr_23'] != '') { ?>
/
<?=$list[$i]['wr_23']?>
<? } ?>

[/code]

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 4개

어떤에러가 나오는지 정확히 알려주세요!
데이터는 나오는데 IF를 인식을 못합니다 ^^
echo 문 전에
[code]
if ($list[$i]['wr_21'] != '') $list[$i][wr_2_temp] = $list[$i]['wr_21'];
else if ($list[$i]['wr_22'] != '') $list[$i][wr_2_temp] = $list[$i]['wr_22'];
else if ($list[$i]['wr_23'] != '') $list[$i][wr_2_temp] = $list[$i]['wr_23'];
[/code]

<여기요> 부분에 {$list[$i][wr_2_temp]}

이렇게 해보세요
제가 부족해서 그런지 잘 응용을 못하겠어요 ^^;;

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440