mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/hosting_users/ii_jih1252/www/notice/list.php on line 30 이런메시지가 나타납니다. > 그누4 질문답변

그누4 질문답변

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

mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/hosting_users/ii_jih1252/www/notice/list.php on line 30 이런메시지가 나타납니다. 정보

mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/hosting_users/ii_jih1252/www/notice/list.php on line 30 이런메시지가 나타납니다.

본문

<html>
<META http-equiv="Content-Type" content="text/html; charset=Korean">
 <head>
  <title> :: PHP 프로그래밍 입문에 오신것을 환영합니다~~ :: </title>
  <link rel="stylesheet" href="../style.css" type="text/css">
 </head>
 <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table border=0 cellspacing=0 cellpdding=0 width='776' align='center'>
        <tr>
          <td colspan="5" height=25><img src="img/notice_title.gif"></td>
        </tr>
        <tr>
          <td background="img/bbs_bg.gif">
              <img border="0" src="img/blank.gif" width="1" height="3"></td>
        </tr>
        <tr>
          <td height=10></td>
        </tr>
<? <=========================여기서 부터 
$total_record = mysql_num_rows($result); // 전체 글 수
?> <================여기까지 입니다.
        <tr><td align="right" colspan="5" height=20>전체 <? echo $total_record; ?>건
          </td></tr>
        <tr>
          <td>

    <table border=0 cellspacing=0 cellpdding=0 width='100%' class="txt">
        <tr bgcolor="#5AB2C8">
          <td colspan="5" height=1></td>
        </tr>
        <tr bgcolor="#D2EAF0" height=25>
          <td width="50" align="center"><strong>번호</strong></td>
          <td width="450" align=center><strong>제목</strong></td>
          <td width="145" align=center><strong>작성일</strong></td>
          <td width="55" align=center><strong>조회</strong></td>
          <td width="76" align=center><strong>글쓴이</strong></td>
        </tr>
        <tr bgcolor="#5AB2C8">
          <td colspan="5" height=1></td>
        </tr>

댓글 전체

$total_record = mysql_num_rows($result); // 전체 글 수 <--- 여기에서 사용될 $result 값을
추출하는 부분
$result=mysql_query("select ..............'); <--이런 코드가 위쪽에 있어야 합니다
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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