채택완료

팝업으로 불러온 내용에 본문 링크 걸기 문의 드립니다.

<form name="notice_form_<?=$row[wr_id]?>">
<div id="divpopup_<?=$row[wr_id]?>" style="margin-top:1004px; margin-right:0; margin-bottom:0; margin-left:-181px; border-width:0px; width:360px; height:400px; overflow:hidden; position:absolute; left:50%; top:0%; z-index:999;" >
    <? for ($i=0; $i<count($list); $i++) { ?>
 <div id="popmain" style="padding:0px 0px 0px 0px; width:366px; height:396px;"><a href="{$list[$i][href]}"><?=$pop_content?></a></div>
    <? } ?>
</div>
</form>

메인페이지에 예전 팝업스킨을 이용해서 본문 내용을 뽑아오게했습니다.

내용이나 레이어를 클릭시 해당원글로 가게하려하는데 위에 링크준것으로는 해당글이 열리지 않네요..

어떻게 링크를 걸어줘야 할지요?

|

답변 1개 / 댓글 1개

채택된 답변
+20 포인트

<a href="{$list[$i][href]}"> 을

<a href="<?php echo $list[$i][href];?>"> 로 변경해 보세요

답변에 대한 댓글 1개

감사합니다.
알려주신 대로 했는데 테이블을 찾지 못하는것 같습니다.
bo_table=&wr_id=7 로 bo_table 명이 없이 주소가 찍힙니다.
이부분은 어떻게 해야할지요?

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