애왜안될까요;;; > 개발자팁

개발자팁

개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.

애왜안될까요;;; 정보

MySQL 애왜안될까요;;;

본문

<?
 include "dbcon.php";
 if($num == "")
 {popup_back("잘못된 경로 입니다.");}
 
 $sql = "select * from message wgere num = $num";
 $res = mysql_query($sql);
 show();
 mysql_close($con);
//--------------show()함수--------------//
function show()
{
 global $res;
 $num = mysql_result($res, 0, 'num');
 $name = mysql_result($res, 0, 'name');
 $email = mysql_result($res, 0, 'email');
 $message = mysql_result($res, 0, 'message');
 $writedate = mysql_result($res, 0, 'writedate');
 $sourceip = mysql_result($res, 0, 'sourceip');
 echo("
 <table border=1>
  <tr>
   <td>번호</td>
   <td>이름</td>
   <td>이메일</td>
   <td>작성일</td>
   <td>IP</td>
  </tr>
  <tr>
   <td colspan=5>메시지</td>
  </tr>
  </table>
 ");
}
//--------------show()함수--------------//
?>
 
 
이렇게 했거든여
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in C:\AutoSet6\public_html\view.php on line 18

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in C:\AutoSet6\public_html\view.php on line 19

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in C:\AutoSet6\public_html\view.php on line 20

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in C:\AutoSet6\public_html\view.php on line 21

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in C:\AutoSet6\public_html\view.php on line 22

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in C:\AutoSet6\public_html\view.php on line 23
이런 에러가나네요
 
mysql연결은 다되있고 확인까지 했는데 저러네용;;
추천
0

댓글 2개

아우 진짜 아 너무 감사해요 ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
제가봐도 너무 한심하네요 ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
아우나 ㅋㅋ 저거하나때문에 아 ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ 몇시간동안 3시간 정도 강좌못보고 머물러있었네요 ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
전체 5,352
개발자팁 내용 검색

회원로그인

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