이건무슨에러인가요?
본문
select * from g4_write_menu02_05 where wr_is_comment = 0 and (wr_id=) order by wr_num limit 0, 3
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 wr_num limit 0, 3' at line 1
error file : /index.php
위 소스를 적용시켰더니..
메인쪽에 최근게시물이 6개가 있는데 그중에 3개는 정상적으로 출력이 되는데 나머지는 출력이 안되고 위 오류가 나오네요.ㅠㅠ
답변 3
저는 초보자입니다... 도움이 안되더라도 양해부탁드려요.
error file: index.php
select * from g4_write_menu02_05 where wr_is_comment = 0 and (wr_id=) order by wr_num limit 0, 3
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 wr_num limit 0, 3' at line 1
빨간색으로 표시한 부분이 문제인 것 같은데요.
위에 select 구문에서 wr_id= 값이 없어서(?) 괄호 ) 에서 문제가 있는 것 같네요
오타가 났다는말입니다.
따옴표라던지 세미콜론을 안닫았는지 확인해보세요.