insert
$name=$_POST['name'];
$price=$_POST['price'];
mysql_select_db("DB 명
$sql = "insert cs_coupon(name,price) values($name,$price)";
mysql_query($sql);
mysql_close($con);
?>
alert('입력되었습니다.');
history.back();
</script>
\r\nPOST 넘긴 값을 DB에 입력할떄,\r\n \r\n앞에 Form 에서 숫자만 입력을 해야지 DB 에 들어가네요.\r\n \r\n영문,한글...","url":"https://sir.kr/boards/program/15462","author":{"@type":"Person","name":"케파서버","url":"https://sir.kr/profile/254707e6-df99-4a64-be6e-1ebc794dd8c1"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"datePublished":"2011-12-29T16:14:23+09:00","dateModified":"2012-01-02T17:23:31+09:00","comment":[{"@type":"Comment","text":"mysql에서 db 타입을 확인해보세여 int로 되어있는건 아닌지\r\nint로 되어있으면 char나 text로 바꾸시길","author":{"@type":"Person","name":"톰소여"},"datePublished":"2011-12-30T17:00:01+09:00"},{"@type":"Comment","text":"db안에 name 필드는 한글,영문이기 때문에 문자형을 지정하는 varchar 타입으로 하셔야합니다.","author":{"@type":"Person","name":"엔피씨"},"datePublished":"2012-01-02T17:23:31+09:00"}]}
댓글 2개
int로 되어있으면 char나 text로 바꾸시길