<?
$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년 전 | 4073 | |
| 29 |
아우겐나이스
|
21년 전 | 4458 | |
| 28 |
아우겐나이스
|
21년 전 | 3479 | |
| 27 | 21년 전 | 5859 | ||
| 26 | 21년 전 | 3141 | ||
| 25 | 21년 전 | 6106 | ||
| 24 | 18년 전 | 3671 | ||
| 23 | 21년 전 | 3662 | ||
| 22 | 21년 전 | 4261 | ||
| 21 | 21년 전 | 3838 | ||
| 20 | 21년 전 | 4243 | ||
| 19 | 21년 전 | 6705 | ||
| 18 | 21년 전 | 4749 | ||
| 17 | 21년 전 | 7004 | ||
| 16 | 21년 전 | 4187 | ||
| 15 | 21년 전 | 2658 | ||
| 14 | 21년 전 | 4990 | ||
| 13 | 21년 전 | 3416 | ||
| 12 |
Recluse
|
21년 전 | 3900 | |
| 11 |
아우겐나이스
|
21년 전 | 3585 | |
| 10 |
Recluse
|
21년 전 | 3414 | |
| 9 | 21년 전 | 4028 | ||
| 8 | 21년 전 | 5193 | ||
| 7 | 21년 전 | 4780 | ||
| 6 | 21년 전 | 5710 | ||
| 5 | 21년 전 | 4136 | ||
| 4 | 21년 전 | 4866 | ||
| 3 | 21년 전 | 4766 | ||
| 2 | 21년 전 | 3270 | ||
| 1 | 22년 전 | 4355 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기