에러메세지가 뜨는데 어디를 수정하면되는지요 ㅡㅜ > 그누4 질문답변

그누4 질문답변

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

에러메세지가 뜨는데 어디를 수정하면되는지요 ㅡㅜ 정보

에러메세지가 뜨는데 어디를 수정하면되는지요 ㅡㅜ

본문

관리자 페이지 상단에 아래와같은 에러 메세지가 뜹니다
어느파일을 수정하면되는지 고수님들 부탁드립니다.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/hosting_users/joysolo/www/sexy/adm/banner_list_txt.php on line 27

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/joysolo/www/sexy/adm/banner_list_txt.php:27) in /home/hosting_users/joysolo/www/sexy/common.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/joysolo/www/sexy/adm/banner_list_txt.php:27) in /home/hosting_users/joysolo/www/sexy/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/joysolo/www/sexy/adm/banner_list_txt.php:27) in /home/hosting_users/joysolo/www/sexy/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/joysolo/www/sexy/adm/banner_list_txt.php:27) in /home/hosting_users/joysolo/www/sexy/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/joysolo/www/sexy/adm/banner_list_txt.php:27) in /home/hosting_users/joysolo/www/sexy/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/joysolo/www/sexy/adm/banner_list_txt.php:27) in /home/hosting_users/joysolo/www/sexy/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/joysolo/www/sexy/adm/banner_list_txt.php:27) in /home/hosting_users/joysolo/www/sexy/head.sub.php on line 38

댓글 전체

banner_list_txt.php 소스 27번 라안에 mysql_num_rows() 함수 쿼리에 오류가 발생해서 그렇네요.

잘보시고 쿼리문에 오류를 수정하시면 아래 부분은 해결되실듯 합니다.

참고로 head.sub.php 이전에 어떤 출력을 하시면 안됩니다.
포머장님 감사합니다 근데요

25번라인 $query = "select * from IB_bannerTable where b_type='$b_type' order by b_idx desc";
26번라인 $result = mysql_query($query,$con);
27번 라인 $total=mysql_num_rows($result);

이렇게 되어 있는데 27번라인 쿼리문에 오류를 어떻게 수정하면 되는지
한번만 더 말씀해주시면 감사하겠습니다..^^
참고로 head.sub.php 상단에서 문제가된 38번까지 입니다.

<?
// 이 파일은 새로운 파일 생성시 반드시 포함되어야 함
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$begin_time = get_microtime();

if (!$g4['title'])
    $g4['title'] = $config['cf_title'];

// 쪽지를 받았나?
if ($member['mb_memo_call']) {
    $mb = get_member($member[mb_memo_call], "mb_nick");
    sql_query(" update {$g4[member_table]} set mb_memo_call = '' where mb_id = '$member[mb_id]' ");

    alert($mb[mb_nick]."님으로부터 쪽지가 전달되었습니다.", $_SERVER[REQUEST_URI]);
}


// 현재 접속자
//$lo_location = get_text($g4[title]);
//$lo_location = $g4[title];
// 게시판 제목에 ' 포함되면 오류 발생
$lo_location = addslashes($g4['title']);
if (!$lo_location)
    $lo_location = $_SERVER['REQUEST_URI'];
//$lo_url = $g4[url] . $_SERVER['REQUEST_URI'];
$lo_url = $_SERVER['REQUEST_URI'];
if (strstr($lo_url, "/$g4[admin]/") || $is_admin == "super") $lo_url = "";

// 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면
// 캐쉬의 내용을 가져옴. 완전한지는 검증되지 않음
32번라인 header("Content-Type: text/html; charset=$g4[charset]");
    $gmnow = gmdate("D, d M Y H:i:s") . " GMT";
34번라인 header("Expires: 0"); // rfc2616 - Section 14.21
35번라인 header("Last-Modified: " . $gmnow);
36반라인 header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
37번라인 header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
38번라인 header("Pragma: no-cache"); // HTTP/1.0
?>

여기에는 문제가 없는거죠?
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT