채택완료

새창으로 본문열리게 하려합니다

8년 전 2,554

<td><a href="<?php echo $list[$i]['href'] ?>"><?php echo $list[$i]['wr_subject'] ?></a></td>

 

위에서 새창으로 본문을 열리게 하려 합니다

어떻게 수정하면 좋을지 부탁드립니다 

|

답변 1개 / 댓글 2개

채택된 답변
+20 포인트

<td><a href="<?php echo $list[$i]['href'] ?>" target="_blank"><?php echo $list[$i]['wr_subject'] ?></a></td> 

로 변경하시면 됩니다.

답변에 대한 댓글 2개

안됩니다 ㅠ.ㅠ
소스는 아래처럼 수정하였는데요

<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>
아 해결했습니다
js 부분에도 넣어야 하는걸 몰랐습니다
답변 감사합니다

답변을 작성하려면 로그인이 필요합니다.