HEADER 오류 관련 질문드립니다.

· 2011-02-22 (화) 15:50:16 · 1999 · 2
특정 스킨을 적용했더니 게시판 상단에 아래와 같은 에러가 뜹니다.

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 }

어디를 손봐야 할까요?
|

댓글 2개

2011-02-22 (화) 16:22:24
/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 문의 결과가 나오도록 수정하세요.
2011-02-23 (수) 13:36:14
감사합니다. 일단 첫번째 방법으로 해결하였습니다.

복많이 받으시고 좋은일 많으시길... .

친절에 감사드립니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
11-02-22 조회 1,503
11-02-22 조회 1,283
11-02-22 조회 1,284
11-02-22 조회 1,478
11-02-22 조회 1,653
11-02-22 조회 3,552
11-02-22 조회 2,000
11-02-22 조회 7,962
11-02-22 조회 1,853
11-02-22 조회 1,170
11-02-22 조회 1,618
11-02-22 조회 1,030
11-02-22 조회 1,841
11-02-22 조회 1,216
11-02-22 조회 1,017
11-02-22 조회 2,417
11-02-22 조회 1,779
11-02-22 조회 2,944
11-02-22 조회 1,677
11-02-22 조회 3,491