리스트페이지에서 페이징 문제좀 도와주세요 정보
리스트페이지에서 페이징 문제좀 도와주세요본문
bbs/list.php
if ($sst)
$sql_order = " order by $sst $sod ";
아래에 소스를 추가해서
if ($bo_table =='educenter' && $_GET[edu]=='s1')
$sql_order = " and wr_3 = '1' order by $sst $sod ";
if ($bo_table =='educenter' && $_GET[edu]=='s2')
$sql_order = " and wr_3 = '2' order by $sst $sod ";
if ($bo_table =='educenter' && $_GET[edu]=='s3')
$sql_order = " and wr_3 = '3' order by $sst $sod ";
출력값이 다르게 나오게는 만들었는데요
페이징은 전체 데이타에 맞춰서 나오네요 ㅠㅠ
페이징도 위에처럼 하는 방법이 없을까요?
if ($sst)
$sql_order = " order by $sst $sod ";
아래에 소스를 추가해서
if ($bo_table =='educenter' && $_GET[edu]=='s1')
$sql_order = " and wr_3 = '1' order by $sst $sod ";
if ($bo_table =='educenter' && $_GET[edu]=='s2')
$sql_order = " and wr_3 = '2' order by $sst $sod ";
if ($bo_table =='educenter' && $_GET[edu]=='s3')
$sql_order = " and wr_3 = '3' order by $sst $sod ";
출력값이 다르게 나오게는 만들었는데요
페이징은 전체 데이타에 맞춰서 나오네요 ㅠㅠ
페이징도 위에처럼 하는 방법이 없을까요?
댓글 전체
저렇게 해서 total count가 맞게나오나요?
이게 안맞으니 페이징이 안맞습니다
저 부분 위쪽 total_count 계산하는 부분 부터 적용 되도록 해야합니다
이게 안맞으니 페이징이 안맞습니다
저 부분 위쪽 total_count 계산하는 부분 부터 적용 되도록 해야합니다