테스트 사이트 - 개발 중인 베타 버전입니다

애왜안될까요;;;

· 13년 전 · 774 · 2
<?
 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연결은 다되있고 확인까지 했는데 저러네용;;

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 2개

설마? wgere => where
??
아우 진짜 아 너무 감사해요 ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
제가봐도 너무 한심하네요 ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
아우나 ㅋㅋ 저거하나때문에 아 ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ 몇시간동안 3시간 정도 강좌못보고 머물러있었네요 ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ

게시글 목록

번호 제목
27980
7164
31729
31726
31725
31720
31711
7159
27974
19734
19730
19729
27969
7142
19728
19725
7130
19722
19719
7124
19718
19717
19716
19715
7122
30959
19714
31710
31709
19713
7117
19712
7111
31708
31707
19710
31706
31705
31704
19709
19707
31703
19706
31702
19705
31701
19704
31700
31699
31698
7107
19703
31697
31696
19702
19701
31695
27965
31694
19700
31693
19699
31692
31691
19698
19697
19696
19694
19693
19692
19691
19690
19689
19688
19687
7105
30955
7100
19681
7097
19678
7089
7086
7084
7082
19677
30953
7080
7077
7071
7070
7066
19676
19674
27961
7063
7061
19669
7060
20842