반응형

Notice: Use of undefined constant  오류

 

$query = "select * from board_notice where idx = '".$_GET[idx]."'";

위와 같은 형태에서

$query = "select * from board_notice where idx = '".$_GET['idx']."'";

위와 같은 형식으로 처리 하니 오류는 미발생

근본적인 처리 방법은 아래와 같이

 

php.ini 에서


error_reporting = E_ALL 주석

or
error_reporting = E_ALL & ~E_NOTICE 수정

 

반응형

'PHP' 카테고리의 다른 글

100일 뒤 날짜구하기, 특정 날짜 구하기  (0) 2023.11.19
SWITCH 문  (0) 2010.10.26
게시판  (0) 2010.10.26
사용자 정의 함수  (0) 2010.10.26
IF 문, FOR 문,WHILE 문  (0) 2010.10.26

+ Recent posts