<?
include "dbcon.php";
if($num == "")
{popup_back("잘못된 경로 입니다.");}
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;
//--------------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');
$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()함수--------------//
?>
<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
이런 에러가나네요
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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 12487 |
PHP
pc 모바일 체크
|
| 12486 |
PHP
계정 사용량(용량) 확인
|
| 380 | |
| 12484 | |
| 12483 |
MySQL
소수점 반올림 버림
|
| 376 | |
| 12482 | |
| 12481 |
PHP
에러 로그파일 생성하기
|
| 12479 | |
| 12478 | |
| 12477 |
PHP
후이즈검색 하기 입니다.
|
| 12476 |
PHP
그래프 그리기 입니다.
|
| 12475 |
JavaScript
자바스크립트로 구현한 number_format() 입니다.
|
| 12474 |
JavaScript
금액 관련 숫자를 한글로 변환하기 입니다.
|
| 12473 |
PHP
PHP 날짜 계산 관련 함수
|
| 12472 |
jQuery
jQuery 1.x와 2.x 버전 동시에 사용하기
|
| 12471 | |
| 12470 | |
| 12469 |
JavaScript
사업자 등록번호 검사하기 입니다.
|
| 371 | |
| 12468 | |
| 12467 |
JavaScript
항상 같은곳에 광고창 만들기 입니다.
|
| 12466 |
JavaScript
부메뉴 나오게 하기 입니다.
|
| 12465 |
JavaScript
특정문자 제거하기 입니다.
|
| 12464 |
JavaScript
휴대폰번호 검사 하기 입니다.
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기