최신글 클릭시 [wr_link1]로 넘기기 질문

최신글 클릭시 [wr_link1]로 넘기기 질문

QA

최신글 클릭시 [wr_link1]로 넘기기 질문

답변 3

본문

<?php echo $list[$i]['wr_link1'] ?>

 

이 코드를 적용하면 잘 적용 되고 있습니다.

하지만 제가 원하는 기능이 있는데요...

 

게시판 view페이지에서 링크를 클릭하면

넘어가는 코드는

<도메인/bbs/link.php?bo_table..........>
이런 형식으로 넘어가게 되더라구요.

 

최신글에서도 링크 클릭시

바로 링크1번으로 이동하는 것이 아닌

게시판 view페이지에서 링크를 클릭했을때

넘겨지는 유형으로 변경하고 싶은데...

 

소스를 어떻게 수정해야 될까요?

 


        <li>
            <?php
            if ($list[$i]['icon_secret']) echo "<i class=\"fa fa-lock\" aria-hidden=\"true\"></i> ";
            
            echo "<a href=\"".$list[$i]['wr_link1']."\" class=\"lt_tit\" target=\"_blank\">";
            if ($list[$i]['is_notice'])
                echo "<strong><i class='fas fa-heartbeat' style='color: red;'></i> ".$list[$i]['subject']."</strong>";
            else
                echo "<i class='fas fa-heartbeat' style='color: red;'></i> ".$list[$i]['subject'];
            
            echo "</a>";
            ?>
        </li>
 

이 질문에 댓글 쓰기 :

답변 3

참고 https://gnustudy.com/bbs/board.php?bo_table=skin_latest&wr_id=22

 

echo "<a href=\"".$list[$i]['wr_link1']."\" class=\"lt_tit\" target=\"_blank\">";
여기를 이렇게 수정
echo "<a href=\"".$list[$i]['link_href'][1]."\" class=\"lt_tit\" target=\"_blank\">";

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