很想骂人! 你还说检查过了! 看这几句: $username=$_POST['username']; $password=$_POST['password']; $exec="select * from webmasteradmin where username='".$user."'"; $user 是哪里冒出来的?
$username=$_POST['username']; $password=$_POST['password']; $exec="select * from webmasteradmin where username='".$user."'";这样才对哦!!晕! $exec="select * from webmasteradmin where username='".$username."'";
把你的 $db=mysql_connect("localhost","root","root"); 改为 @mysql_connect("localhost","root","root") or die ("+ 数据库连接失败 +");你只是把他赋值给一个变量 但你的$db执行了吗?
2、确认程序是被post方式表单执行的
3、确认mysql已启动
4、确认ihelp库存在
5、确认webmasteradmin表存在
6、确认$user有值
你还说检查过了!
看这几句:
$username=$_POST['username'];
$password=$_POST['password'];
$exec="select * from webmasteradmin where username='".$user."'";
$user 是哪里冒出来的?
$password=$_POST['password'];
$exec="select * from webmasteradmin where username='".$user."'";这样才对哦!!晕!
$exec="select * from webmasteradmin where username='".$username."'";
$db=mysql_connect("localhost","root","root");
改为
@mysql_connect("localhost","root","root") or die ("+ 数据库连接失败 +");你只是把他赋值给一个变量
但你的$db执行了吗?