최실글 적용하고
게시물 쓰니까 최신글 부분이 이렇게 되던데요..
쉽게설명 부탁드려요
select * from where wr_comment = '' and wr_reply = '' order by wr_id DESC LIMIT 0, 1
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 'where wr_comment = '' and wr_reply = '' order by wr_id DESC LIMIT 0, 1' at line 2
error file : /index.php
게시물 쓰니까 최신글 부분이 이렇게 되던데요..
쉽게설명 부탁드려요
select * from where wr_comment = '' and wr_reply = '' order by wr_id DESC LIMIT 0, 1
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 'where wr_comment = '' and wr_reply = '' order by wr_id DESC LIMIT 0, 1' at line 2
error file : /index.php
댓글을 작성하시려면 로그인이 필요합니다.
댓글 4개
테이블명 빠졌습니다~
$sql = " select * from g4_write_게시판이름 $tmp_write_table
where wr_comment = '' and wr_reply = ''
order by wr_id DESC LIMIT 0, 1 ";
입니다