휴대폰번호 관리에서 정렬방식
본문
휴대폰번호 관리에서 아래그림처럼 '수신' 눌렀을때 수신동의와 미동의로 정렬을 하려고 합니다.
num_book.php 에서
<tr>
<th scope="col">
<label for="chk_all" class="sound_only">현재 페이지 전체</label>
<input type="checkbox" id="chk_all" onclick="book_all_checked(this.checked)">
</th>
<th scope="col">번호</th>
<th scope="col">그룹</th>
<th scope="col">이름</th>
<th scope="col">휴대폰</th>
<th scope="col"><?php echo subject_sort_link('bk_receipt'); ?>수신</th>
<th scope="col">아이디</th>
<th scope="col">업데이트</th>
<th scope="col">관리</th>
</tr>
위와같이 수정했는데 작동을 하지 않아서요..
어떻해 수정해야할까요?
의견좀 부탁드리겠습니다.
답변 4
해당 페이지에서 order by가 정의되어있지 않아서 입니다
58번째줄쯤에
if (!$sst) {
$sst = "bk_no";
$sod = "desc";
}
$sql_order = " order by {$sst} {$sod} ";
을 넣어주시고
아래에 177번째줄에 보시면 쿼리문이 하나있는데 거기서 order by bk_no desc 부분을
{$sql_order} 로 바꿔주세요
!-->'데이터가 없습니다.' 라고 뜨네요 ㅠㅠ
바쁘신데 답변 감사합니다.!!