가로로 나오게 하려면 어떻게해야하나요 채택완료
보통사람
11년 전
조회 4,093
출력하면 세로로 나오는데 가로로 나오게 하고싶은데요
</div>
<div><table width="100%" border="0" cellpadding="0" cellspacing="0">
<?
$sql = "select * from $g4[yc4_item_ps_table] where is_confirm = 1 order by is_id desc limit 3 ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$star = get_star($row[is_score]);
$is_name = get_text($row[mb_id]);
$is_subject = strip_tags($row[is_subject]);
$is_subject = cut_str($is_subject, 40, "…");
$is_content = strip_tags($row[is_content]);
$is_content = cut_str($is_content, 120, "...");
$image = get_it_image("$row[it_id]_s", 150, 150, $row[it_id]);
$is_time = substr($row[is_time], 0, 10);
?>
<tr>
<td height="22" colspan="2" class="line" >·<a href="/youngcart4/shop/item.php?it_id=<?=$row[it_id]?>#review_item">
<?=$is_subject?>
</a></td>
</tr>
<tr>
<td width="65" height="60" class="prview_cont" style="padding-left:3px" ><?=$image?></td>
<td valign="top" class="prview_cont" ><a href="/youngcart4/shop/item.php?it_id=<?=$row[it_id]?>#review_item"><?=$is_content?></a> <span style="font-size:10px;"> <?=$is_name?>님</span></td></tr>
<? } ?>
</table>
댓글을 작성하려면 로그인이 필요합니다.
답변 2개
채택된 답변
+20 포인트
11년 전
6 |
|
17 |
|
18 |
=$is_subject?> |
19 |
|
20 |
|
21 |
|
22 |
|
23 |
| |
| 만 for문으로 돌리고 원하는 갯수 만큼 숫자 세가지고 if($i%3 = 0){ echo ""} 해서 줄바꿈 대략 이런식 하던가 아니면 로 구성해서 사이즈 조정해서 하는방법 이렇게 있습니다. |
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
보통사람
11년 전
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
솔직히 먼말인지 잘 모르겠어요
그정도 수준이 아니라서.