게시글 가로 2개씩 나오게 하려면....

게시글 가로 2개씩 나오게 하려면....

QA

게시글 가로 2개씩 나오게 하려면....

답변 1

본문

안녕하세요. 어재 조언을 주셨는데 잘 안되어서 다시 질문을 드립니다.

도와주셔서 너무 감사합니다.^^

아래 소스를 봐주셔서 도움 부탁드립니다.

갤러리형처럼 가로 2개씩 리스트를 나오게하고싶습니다.

================================================================================

<table width="100%" valign="top" bgcolor="#f0f0f0">
<tr>
 <td>
<?php
$sql = "select a.*, b.* from g5_write_lawyer a, g5_board_file b where a.wr_id=b.wr_id and b.bo_table='lawyer'";

$result = sql_query($sql);

 for ($i=0; $i<count($result); $i++) {
?>
   <table width="50%" valign="top" bgcolor="#ffffff">
<tr>
 <td> <img src="/data/file/lawyer/<? echo $result["bf_file"]?>" width="60" height="79"></td>
 <td> <div style="width:100px;font-size:13px;"><b><? echo $result["wr_subject"]?></b></div>
  <div style="width:100px;margin-top:10px;"><? echo substr($result["wr_content"],0,40)?></div>
  </td>
   </tr>
 </table>

 

   
<?php
  
}

?> 

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 121
© SIRSOFT
현재 페이지 제일 처음으로