출력하면 세로로 나오는데 가로로 나오게 하고싶은데요
Copy
<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개 / 댓글 1개
채택된 답변
+20 포인트
2014-01-29 (수) 16:28:13
6 |
<tr> |
17 |
<td height="22" colspan="2" class="line" >·<a href="/youngcart4/shop/item.php?it_id=<?=$row[it_id]?>#review_item"> |
18 |
<?=$is_subject?> |
19 |
</a></td> |
20 |
</tr> |
21 |
<tr> |
22 |
<td width="65" height="60" class="prview_cont" style="padding-left:3px" ><?=$image?></td> |
23 |
<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> |
답변에 대한 댓글 1개
2014-01-29 (수) 17:16:35
2018-11-03 (토) 19:49:29
많은 도움이 되었습니다. 감사합니다.
답변을 작성하려면 로그인이 필요합니다.
솔직히 먼말인지 잘 모르겠어요
그정도 수준이 아니라서.