<td><a href="<?php echo $list[$i]['href'] ?>"><?php echo $list[$i]['wr_subject'] ?></a></td>
위에서 새창으로 본문을 열리게 하려 합니다
어떻게 수정하면 좋을지 부탁드립니다
|
답변 1개 / 댓글 2개
채택된 답변
+20 포인트
블랙캣77
8년 전
<td><a href="<?php echo $list[$i]['href'] ?>" target="_blank"><?php echo $list[$i]['wr_subject'] ?></a></td>
로 변경하시면 됩니다.
답변에 대한 댓글 2개
e편한세상공인중개사
8년 전
답변을 작성하려면 로그인이 필요합니다.
소스는 아래처럼 수정하였는데요
<div class="tbl_head01 tbl_wrap">
<table>
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
<thead>
<tr>
<th scope="col">지점명</th>
<th scope="col">주소</th>
<th scope="col">연락처</th>
</tr>
</thead>
<tbody id="store_list">
<?php for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td><a href="<?php echo $list[$i]['href'] ?>" target="_blank"><?php echo $list[$i]['wr_subject'] ?></a></td>
<td><a href="<?php echo $list[$i]['href'] ?>" target="_blank"><?php echo $list[$i]['wr_1'] ?></a></td>
<td><a href="<?php echo $list[$i]['href'] ?>" target="_blank"><?php echo $list[$i]['wr_2'] ?></a></td>
</tr>
<?php } ?>
<?php if (count($list) == 0) { echo '<tr><td colspan="'.$colspan.'" class="empty_table">게시물이 없습니다.</td></tr>'; } ?>
</tbody>
</table>
</div>