초보적인 질문입니다.

<?
if ($list[$i][is_notice]) // 공지사항
echo "<img src=\"$board_skin_path/img/notice_icon.gif\" width=30 height=16>";
else if ($wr_id == $list[$i][wr_id]) // 현재위치
echo "<font class=w_num><strong>{$list[$i][num]}</strong></font>";
else
echo "<font class=w_list>{$list[$i][num]}</font>";
?>

여기부분을 "<font class=w_num><strong>{$list[$i][num]}</strong></font>";
요렇게 했는데요. 에러가 납니다.
{$list[$i][num] = "<img src='$board_skin_path/img/icon_arrow.gif' border=0 width=15 height=11>"; }
이미지로 출력할려면 어떻게 하면 됩니까? 제가 초보라서 문법을 몰라 죄송합니다.
|

댓글 4개

아하 잘 됩니다. 감사합니다.. (__)
echo {$list[$i][num] = "<img src='$board_skin_path/img/icon_arrow.gif' border=0 width=15 height=11>"; }

echo "<img src=\"$board_skin_path/img/icon_arrow.gif\" width=15 height=11>";
로 해보세요
<?
if ($list[$i][is_notice]) // 공지사항
echo "<img src=\"$board_skin_path/img/notice_icon.gif\" width=30 height=16>";
else if ($wr_id == $list[$i][wr_id]) // 현재위치
echo {$list[$i][num] = "<img src='$board_skin_path/img/icon_arrow.gif' border=0 width=15 height=11>"; }
else
echo "<font class=w_list>{$list[$i][num]}</font>";
?>

답변감사드립니다. 요렇게 했는데 에러 납니다. T.T
공개 하신 곳에서
3번째 줄 그대로 빼겨서 5번째 줄에 넣으신후 이미지와 가로 세로 사이즈만 교체 하세요...
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
20년 전 조회 3,356
20년 전 조회 2,603
20년 전 조회 2,504
20년 전 조회 2,913
20년 전 조회 3,079
슈가스타
20년 전 조회 3,083
20년 전 조회 2,932
20년 전 조회 2,893
20년 전 조회 2,783
20년 전 조회 2,509
20년 전 조회 2,724
20년 전 조회 2,956
20년 전 조회 3,079
20년 전 조회 2,823
20년 전 조회 2,840
20년 전 조회 2,812
20년 전 조회 2,898
20년 전 조회 3,016
20년 전 조회 3,214
20년 전 조회 2,766