2011년 5월 29일 일요일

그누보드 1064에러

select * from where po_start_date < '2011-05-29 16:43:05' and po_end_date > '2011-05-29 16:43:05' and po_openchk = '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 po_start_date < '2011-05-29 16:43:05' and po_end_date > '2011-05-29 16:43:' at line 1
error file : /adm/index.php

rims 빌더에서 기존 메뉴의 플러그인을 교체 하였다. 
테이블을 올바르게 교체 했지만 SQL 구문 에러가 났다.
플러그인의 변수가 빌더와 맞지 않아서 생기는 문제였다.
$g4[popup_table] 의 값을 $g4[rims_popup_table] 으로 모두 바꿔 주었다.

이 경우, lib/popup.lib.php가 문제였다.
$sql = "select * from $g4[popup_table] where po_start_date < '$g4[time_ymdhis]' and po_end_date > '$g4[time_ymdhis]' and po_openchk = '1'";

댓글 없음:

댓글 쓰기