sun's longitude:300 45 36.56 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/read.php:소스보기  

질문과 답변 게시판입니다.

현재 실시간으로 이곳 서버의 설정파일(몇개)를 보여주고 있습니다.
서버의 설정내용에 관한 질문은 먼저 이곳 서버의 설정내용을 참고하시길 바랍니다.

[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
140 번 글의 답장글: Re: Re: php에서 mysql에 기록이 안되네요 도움요청
글쓴이: 정익 글쓴날: 2000년 06월 14일 12:28:45 수(오후) 조회: 2093
답변감사합니다.

고치긴 했는데

Fatal error: Call to unsupported or undefined function mysql_connect() in
/home/esperanz/public_html/testphp/input.php3 on line 12

이렇게  뜨네요

user : myuser
p.w : myuser
db : myuserdb

-- input.html --

<html>
<head>
<title>php 첫번째 테스트</title>

</head>
<body>
<center>
<form action="input.php3" method="post">
<h1>신규회원 가입신청서</h1>

<br><br>
<h3>개인정보를
 입력하십시오</h3>

<table>
<tr>
<td> 아이디</td>
<td> <input type="text" name="id"
size="30"></td>
</tr>
<tr>
<td> 이  름</td>
<td> <input type="text" name="name"
size="30"></td>
</tr>
<tr>
<td> 전  화</td>
<td> <input type="text" name="tel"
size="30"></td>
</tr>
<tr>
<td colspan=2 align=center>
<input type="submit" value="신청"><input
 type="reset" value="지우기">

</td>
</tr>
</table>
</center>
</body>
</html>

-- input.php3  --

<?
if(!$name){
		echo("<script>
		windows.alert('이름을
 넣으세요')
		history.go(-1)
		</script>
		");
	
		exit;
	}

$connection =
mysql_connect("localhost","myuser","myuser");

mysql_select_db("myuserdb",$connection);
$dbresult=mysql_query("insert into info values('$id', $name', '$tel')",
$connection);

if($dbresult=="")
{
	echo("
	<script>
	window.alert('데이터
 입력오류!!!')
	history.go(-1)
	</script>
	");
	exit;
}
?>

그리고 DB 테이블은 확실히 myuserdb 및에 info로 되어있습니다.

 
이전글 : Re: php에서 mysql에 기록이 안되네요 도움요청
다음글 : Re: Re: Re: php에서 mysql에 기록이 안되네요 도움요청  
 from 210.183.201.240
JS(Redhands)Board 0.4 +@

Re: php에서 mysql에 기록이  안되네요 도움요청 Re: Re: Re: php에서 mysql에 기록이  안되네요 도움요청
인쇄용 


apache lighttpd linuxchannel.net 
Copyright 1997-2026. linuxchannel.net. All rights reserved.

Page loading: 0.01(server) + (network) + (browser) seconds