에러메세지가 뜨는데 어디를 수정하면되는지요 ㅡㅜ
관리자 페이지 상단에 아래와같은 에러 메세지가 뜹니다
어느파일을 수정하면되는지 고수님들 부탁드립니다.
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
어느파일을 수정하면되는지 고수님들 부탁드립니다.
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
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 4개
잘보시고 쿼리문에 오류를 수정하시면 아래 부분은 해결되실듯 합니다.
참고로 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번라인 쿼리문에 오류를 어떻게 수정하면 되는지
한번만 더 말씀해주시면 감사하겠습니다..^^
<?
// 이 파일은 새로운 파일 생성시 반드시 포함되어야 함
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
?>
여기에는 문제가 없는거죠?
그냥 아래와 같이 변경해 보세요.
mysql_query($query,$con); => sql_query($query);