이게 무슨 에러 인가요? 정보
이게 무슨 에러 인가요?본문
최실글 적용하고
게시물 쓰니까 최신글 부분이 이렇게 되던데요..
쉽게설명 부탁드려요
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
댓글 전체

from 테이블명 where
무슨말슴이신지요.. 제가 초보라.^^ 죄송합니다.!!
select * from 테이블명 where wr_comment = '' and wr_reply = '' order by wr_id DESC LIMIT 0, 1
테이블명 빠졌습니다~
테이블명 빠졌습니다~

음...
$sql = " select * from g4_write_게시판이름 $tmp_write_table
where wr_comment = '' and wr_reply = ''
order by wr_id DESC LIMIT 0, 1 ";
입니다
$sql = " select * from g4_write_게시판이름 $tmp_write_table
where wr_comment = '' and wr_reply = ''
order by wr_id DESC LIMIT 0, 1 ";
입니다