插入数据错误 求助

2016-07-07 15:32 来源:www.chinab4c.com 作者:ecshop专家

代码为
<?php
include("conn.php");
$username = $_POST["usernameq"];
$password = $_POST["password1q"];
$email = $_POST["emailq"];
$phone = $_POST["phoneq"];
$sql = mysql_query("insert into user(username,password,email,phone) values("$username","$password","$email","$phone")");
$result = mysql_fetch_array($sql);
echo("<script> alert(注册成功!!!); </script>");
echo("<script> alert(对不起,你提交的数据有误,不能注册!!!); </script>");
?>


提交的时候提示Parse error:syntax error, unexpected T_VARIABLE in E:\server\system\PHP_SQL\submit_reg.php on line 13错误 网上找了资料都不能解决

回答:
提示是语法错误。查看第13行附近的