다음 PHP 코드가 있지만 내 WAMP 서버에서 실행되지 않습니다. .php 페이지를 원시 텍스트로 반환합니다. 확실한 구문 또는 구성이 누락 되었습니까?내 PHP 코드가 wamp 서버에서 작동하지 않는 이유
<?php
$uname =$_POST["uname"];
$email =$_POST["email"];
$pw =$_POST["password"];
$pw2 =$_POST["repassword"];
$cno =$_POST["cnumber"];
$add =$_POST["add"];
$con=mysql_connect("localhost","root","");
mysql_select_db("rcj company",$con);
mysql_query("INSRET INTO customer(username, email, password, cnumber, address)VALUES('".$uname."', '".$email."', '".$pw."', '".$pw2."', '".$cno."', '".$add."')");
mysql_close($con);
?>
액세스하려는 URL은 무엇입니까? –
당신의 URL은'http : // localhost'로 시작하고 있습니까? 작동 시키면 키워드가 INSERT가 아니고 INSERT가 아닌 쿼리가 실패합니다 –
meane html form action url? 전혀 그렇지 않다. – user3467197