php 문에서의 질문이라고 해야되나요..? 정보
php 문에서의 질문이라고 해야되나요..?본문
아직 Php 제대로된 공부는 안하고 인터넷강의를 구해서 보고있습니다.
<td width="<?=$col_width?>%" align="center" valign='top'>
<?
$image = $list[$i][file][0][file]; //원본
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/noimg.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
//썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];
if ( file_exists($thumb) )
$img = $thumb;
$style = "style='font-family:돋움; font-size:9pt; color:#686695;' ";
if ($list[$i][icon_new]) {
$style = "style='font-family:돋움; font-size:9pt; color:#134980;' "; }
$subject = "<span $style>".$list[$i][subject]."</span>"; //제목 글자수 자르기
$wr_hit = $list[$i]['wr_hit'];
$wr_id = $list[$i]['wr_id'];
if ($list[$i]['comment_cnt']) //코
$cmt = "({$list[$i]['comment_cnt']})";
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table cellpadding='0' cellspacing='0' border='0'>
<tr><td background='{$latest_skin_path}/img/la_bg.gif' valign='top' align='center'>
<a href=\"$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$wr_id\" onFocus=\"this.blur();\" title=\"{$list[$i][subject]}\">
<img src='{$img}' width='160' height='160' border=0' style='border:4 solid #ffffff'>
</a></td></tr>
<tr>
<td>
<a href='$href'>
<b>{$list[$i][subject]}</b>
<br /> {$list[$i]['comment_cnt']}
<br />
<span>{$list[$i][wr_2]}</span>
<span>$content</span>
</a>
</td>
</tr>
<tr>
<td>
($upday) 
</td>
</tr>
</table>";
다음과 같이 있는데
여기에서 제일 아래쪽 부분에
그러니까 에코 안에 있는 td 나 tr에 속성을 넣고 싶은데.
가운데 정렬 속성이랑 높이나
html 일경우..
<td height=35;>
뭐 대충 이렇게 하면 됫는데
이렇게 넣으니까 안된다고 나오는데..음..아주 기초적인 부분일지라도..
가르쳐주시면 감사드리겠습니다.
<td width="<?=$col_width?>%" align="center" valign='top'>
<?
$image = $list[$i][file][0][file]; //원본
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/noimg.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
//썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];
if ( file_exists($thumb) )
$img = $thumb;
$style = "style='font-family:돋움; font-size:9pt; color:#686695;' ";
if ($list[$i][icon_new]) {
$style = "style='font-family:돋움; font-size:9pt; color:#134980;' "; }
$subject = "<span $style>".$list[$i][subject]."</span>"; //제목 글자수 자르기
$wr_hit = $list[$i]['wr_hit'];
$wr_id = $list[$i]['wr_id'];
if ($list[$i]['comment_cnt']) //코
$cmt = "({$list[$i]['comment_cnt']})";
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table cellpadding='0' cellspacing='0' border='0'>
<tr><td background='{$latest_skin_path}/img/la_bg.gif' valign='top' align='center'>
<a href=\"$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$wr_id\" onFocus=\"this.blur();\" title=\"{$list[$i][subject]}\">
<img src='{$img}' width='160' height='160' border=0' style='border:4 solid #ffffff'>
</a></td></tr>
<tr>
<td>
<a href='$href'>
<b>{$list[$i][subject]}</b>
<br /> {$list[$i]['comment_cnt']}
<br />
<span>{$list[$i][wr_2]}</span>
<span>$content</span>
</a>
</td>
</tr>
<tr>
<td>
($upday) 
</td>
</tr>
</table>";
다음과 같이 있는데
여기에서 제일 아래쪽 부분에
그러니까 에코 안에 있는 td 나 tr에 속성을 넣고 싶은데.
가운데 정렬 속성이랑 높이나
html 일경우..
<td height=35;>
뭐 대충 이렇게 하면 됫는데
이렇게 넣으니까 안된다고 나오는데..음..아주 기초적인 부분일지라도..
가르쳐주시면 감사드리겠습니다.
댓글 전체
<td height=35>