HEADER 오류 관련 질문드립니다. 정보
HEADER 오류 관련 질문드립니다.
본문
특정 스킨을 적용했더니 게시판 상단에 아래와 같은 에러가 뜹니다.
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/sax/www/lib/common.lib.php on line 1114
Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 30
Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 33
Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 36
common.lib.php의 내용은 래와 같습니다.
1111 // 결과값에서 한행 연관배열(이름으로)로 얻는다.
1112 function sql_fetch_array($result)
1113 {
1114 $row = mysql_fetch_assoc($result);
1115 return $row;
1116 }
어디를 손봐야 할까요?
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/sax/www/lib/common.lib.php on line 1114
Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 30
Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 33
Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/sax/www/lib/common.lib.php:1114) in /home/sax/www/head.sub.php on line 36
common.lib.php의 내용은 래와 같습니다.
1111 // 결과값에서 한행 연관배열(이름으로)로 얻는다.
1112 function sql_fetch_array($result)
1113 {
1114 $row = mysql_fetch_assoc($result);
1115 return $row;
1116 }
어디를 손봐야 할까요?
댓글 전체
/home/sax/www/head.sub.php 30번째 sql_fetch_array() 함수를 사용하는데.
쿼리의 값이 NULL 일때 위와 같이 오류가 뜰껍니다.
급한대로 위 오류가 안나게 하려면, common.lib.php의 1114라인을 아래와 같이 수정
$row = @mysql_fetch_assoc($result);
제대로 수정하려면
/home/sax/www/head.sub.php 30번째 라인 위의 $sql 문의 결과가 나오도록 수정하세요.
쿼리의 값이 NULL 일때 위와 같이 오류가 뜰껍니다.
급한대로 위 오류가 안나게 하려면, common.lib.php의 1114라인을 아래와 같이 수정
$row = @mysql_fetch_assoc($result);
제대로 수정하려면
/home/sax/www/head.sub.php 30번째 라인 위의 $sql 문의 결과가 나오도록 수정하세요.
감사합니다. 일단 첫번째 방법으로 해결하였습니다.
복많이 받으시고 좋은일 많으시길... .
친절에 감사드립니다.
복많이 받으시고 좋은일 많으시길... .
친절에 감사드립니다.