에러문 해석좀..
select count(*) as cnt
from
order by ws_id desc
1064
: You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near 'order by ws_id desc' at line 4
error file : /adm/website_list.php
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 6개
셀렉트 다음으로 count(*) 만 있습니다. 뒤에 ws_id 로 정렬하라는 명령이 있지만
검색 필드에는 ws_id 가 없습니다. oder by 구문부터 삭제바랍니다.
에서
select count(*) as cnt from 테이블명 order by ws_id desc 으로 변경되어야 합니다.
select 명령은
"select 필드명 리스트 from 테이블명 where 조건 order by 정렬필드" 입니다.
ws_id 이면 검색 스킨인데,
config.php 파일에서 지정하지 않았나봅니다.