<?
$connect = mysql_connect("localhost","john","1");
mysql_select_db("JohnDB",$connect);
$query = "insert into Member(userid,userage) values('hong',30)";
mysql_query($query,$connect);
mysql_close($connect);
$connect = mysql_connect("localhost","john","1");
mysql_select_db("JohnDB",$connect);
$query = "insert into Member(userid,userage) values('hong',30)";
mysql_query($query,$connect);
mysql_close($connect);
?>
했는데 도스창에서 select * from Member;
해보니 값이 그대롭니다;;;
그냥 도스창에 insert into Member(userid,userage) values('hong',30)
이렇게해야 되구요 ㅠㅠ
왜이러는거죠
댓글 2개
13년 전
쿼리로만 봐서는 모르겠네요..
$result = mysql_query('...');
if (!$result) {
die('Error: ' . mysql_error());
}
이런식으로 오류를 프린트 해보세요. ^^;
$result = mysql_query('...');
if (!$result) {
die('Error: ' . mysql_error());
}
이런식으로 오류를 프린트 해보세요. ^^;
13년 전
아파치버리고 오토셋으로 하니되더군요 ㅋ
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 30 |
아우겐나이스
|
21년 전 | 4109 | |
| 29 |
아우겐나이스
|
21년 전 | 4483 | |
| 28 |
아우겐나이스
|
21년 전 | 3508 | |
| 27 | 21년 전 | 5887 | ||
| 26 | 21년 전 | 3165 | ||
| 25 | 21년 전 | 6144 | ||
| 24 | 18년 전 | 3702 | ||
| 23 | 21년 전 | 3695 | ||
| 22 | 21년 전 | 4285 | ||
| 21 | 21년 전 | 3875 | ||
| 20 | 21년 전 | 4281 | ||
| 19 | 21년 전 | 6728 | ||
| 18 | 21년 전 | 4775 | ||
| 17 | 21년 전 | 7020 | ||
| 16 | 21년 전 | 4215 | ||
| 15 | 21년 전 | 2680 | ||
| 14 | 21년 전 | 5013 | ||
| 13 | 21년 전 | 3437 | ||
| 12 |
Recluse
|
21년 전 | 3913 | |
| 11 |
아우겐나이스
|
21년 전 | 3597 | |
| 10 |
Recluse
|
21년 전 | 3439 | |
| 9 | 21년 전 | 4058 | ||
| 8 | 21년 전 | 5225 | ||
| 7 | 21년 전 | 4802 | ||
| 6 | 21년 전 | 5752 | ||
| 5 | 21년 전 | 4158 | ||
| 4 | 21년 전 | 4896 | ||
| 3 | 21년 전 | 4786 | ||
| 2 | 21년 전 | 3290 | ||
| 1 | 22년 전 | 4380 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기