插入数据提示有问题,盼指教
<?php
require_once('connect.php');
$username=$_POST['username'];
$password=$_POST['password'];
$insertsql = insert into user(username,password) values('$username','$password');/*总是提示这一行有问题*/
if(mysql_query($insertsql)){
echo "<script>alert('注册成功');window.location.href='register.php';</script>";
}else{
echo "<script>alert('注册失败');window.location.href='register.handle.php';</script>";
}
?>