c

최신글 갤러리 게시판에서 제목은 어떻게 나오게하나요ㅜㅜ?

갤러리 게시판에서 제목이 나오도록 하고싶은데
스킨 자체가 안나오는 거라서 추가로 넣으려고 했는데요...
안나와서 질문올립니다 ㅠㅠ

음..
이미지 노출되는 다음에 <?=$list[$i][subject]?>
이렇게 추가 했는데 전혀 아무것도 안나오네요ㅠㅠㅠㅠ

어떻게 해야하나요ㅠㅠ
아래가 최신글 스킨입니다.


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
$img_width = '179'; //썸네일 가로길이
$img_height = '140'; //썸네일 세로길이
//$img_padding = '5'; //썸네일 여백
?>




<table width="" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>

<table width="" border="0" cellspacing="0" cellpadding="0" >
<tr>


<? for ($i=0; $i<count($list); $i++) {

$image = $list[$i][file][0][file]; //원본 리사이즈_아래 자바와 연동_추가
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];

if ( file_exists($thumb) )
$img = $thumb;
if (!$image)
echo "<td align=center valign='top'>
<table cellpadding='0' cellspacing='3' border='#e0e0e0 1 solid' style='border:#e0e0e0 1 solid;'><tr>
<td valign='top' align='center'>

</td></tr></table></td>";
else
echo "<td align=center valign='top'><table cellpadding='0' cellspacing='3' border='0' style='border:#e0e0e0 1 solid;'><tr>
<td valign='top' align='center' >
<a href='/utp/sub/portfolio.html?wr_id={$list[$i]['wr_id']}'>
<img style='padding-left:8px; padding-bottom:8px;' src='{$img}' width='{$img_width}' height='{$img_height}' align='absmiddle' >
<?=$list[$i][subject]?>
</a>
</td></tr></table></td>";

if($i == '3'){ echo"</tr><tr>";
}else if($i == '7'){echo"</tr>";}
} ?>


<td width=50%> </td>
</tr>
</table>

</td>
</tr>
</table>
|

댓글 4개

먼저 소스보기 하셔서 소스상에는 제목이 출력되는지를 살펴보세요.
화면상에서 안보이더라도 소스상에는 출력되는 경우도 있습니다.
소스를 열어보니깐요
이미지다음엔 <!--?=Array[subject]?--> 이렇게 나오네요ㅠㅠ
뭐가 잘못된거 같기는한데..ㅜㅜㅜ 뭐가 잘못된건가요ㅜㅜ
echo"$list[$i][wr_subject]";
{$list[$i]['subject']} 요렇게하니깐 나오네욥!

댓글 작성

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

로그인하기
🐛 버그신고