
$result=mysql_fetch_array(mysql_query($sql));
Warning:mysql_fetch_array():suppliedargumentisnotavalidMySQLresultresourceinindex_che...
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in index_check.php on line 14
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
include("acqs_inc/mysql_config.php");
if(empty($_POST["inp_user"])){
echo ("<script type='text/javascript'> alert('干嘛呢,用户名空!');history.go(-1);</script>");
}
if(empty($_POST["inp_password"])){
echo ("<script type='text/javascript'> alert('密码是需要填写的。');history.go(-1);</script>");
}
$acqst_member_username= $_POST["inp_user"]; //用户名已经记录了
$acqst_member_password= $_POST["inp_password"]; //密码已经记录了
$sql="select * from [acqst_member] where acqst_member_username='$acqst_member_username' and acqst_member_password='$acqst_member_password'";
//$result=@mysql_fetch_array(mysql_query($sql));
$result=mysql_fetch_array(mysql_query($sql));
if(!$result){
echo ("<script type='text/javascript'> alert('用户名或密码不正确!');history.go(-1);</script>");
mysql_close();
exit;
}
if($result["acqse_member_audit"]=="0"){
//验证会员是不是被审核通过了
echo ("<script type='text/javascript'> alert('您还没有被审核呢!');history.go(-1);</script>");
}
session_start();
$_SESSION["session_name"]="$acqst_member_username";
echo "<script>location.href='main.php';</script>";
?>
谁来帮帮忙。。。。。 展开
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
include("acqs_inc/mysql_config.php");
if(empty($_POST["inp_user"])){
echo ("<script type='text/javascript'> alert('干嘛呢,用户名空!');history.go(-1);</script>");
}
if(empty($_POST["inp_password"])){
echo ("<script type='text/javascript'> alert('密码是需要填写的。');history.go(-1);</script>");
}
$acqst_member_username= $_POST["inp_user"]; //用户名已经记录了
$acqst_member_password= $_POST["inp_password"]; //密码已经记录了
$sql="select * from [acqst_member] where acqst_member_username='$acqst_member_username' and acqst_member_password='$acqst_member_password'";
//$result=@mysql_fetch_array(mysql_query($sql));
$result=mysql_fetch_array(mysql_query($sql));
if(!$result){
echo ("<script type='text/javascript'> alert('用户名或密码不正确!');history.go(-1);</script>");
mysql_close();
exit;
}
if($result["acqse_member_audit"]=="0"){
//验证会员是不是被审核通过了
echo ("<script type='text/javascript'> alert('您还没有被审核呢!');history.go(-1);</script>");
}
session_start();
$_SESSION["session_name"]="$acqst_member_username";
echo "<script>location.href='main.php';</script>";
?>
谁来帮帮忙。。。。。 展开
1个回答
展开全部
$sql="select * from [acqst_member] where acqst_member_username='$acqst_member_username' and acqst_member_password='$acqst_member_password'";
你写的这一句应该有错改改吧
你写的这一句应该有错改改吧
更多追问追答
追问
检查了 好几遍了。还是不行。
追答
[acqst_member] 这个变量是从哪里来的呀查询没有表名呀
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询