채택완료

이걸 어떻게 하라는 말인지..

2019-01-02 (수) 07:25:02 2,521

https://sir.kr/g5_tip/5346

이 팁에서 


list.php 

================================ 
$last_wr_id : 
for 문에서 $last_wr_id = $list[$i]["wr_id"]; <-- 이 부분을 넣어주셔야 합니다. 


<script> 

    var page = 2; 
    var last_wr_id = <?php echo $last_wr_id; ?>; 

    $(window).scroll(function () { 

        if ($(window).scrollTop() == $(document).height() - $(window).height()) { 

            $.post("<?php echo $board_skin_url;?>/read.page.php", {bo_table:"<?=$bo_table;?>", page:page, last_wr_id:last_wr_id}, function (data) { 
                //$(".pageListArea .tbl_head01").append("<div style='height:500px;'>추가된 페이지</div>"); 
                $(".pageListArea .tbl_head01").append(data); 

                page++; 
            }); 

        } 
    }); 
</script> 

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

이거를 스킨에 list.php를 만들어 <script> ....</script>만 넣고

$last_wr_id = $list[$i]["wr_id"]; 는 어느 파일에 넣으라는 건가요?

*팁을 참 어렵게 써놓았네요.

|

답변 1개 / 댓글 1개

채택된 답변
+20 포인트
2019-01-02 (수) 07:42:31

for(.......){

$last_wr_id = $list[$i]["wr_id"]; 

}

답변에 대한 댓글 1개

2019-01-02 (수) 10:04:39
새해 복 많이 받으세요~

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