$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>";
?>
谁来帮帮忙。。。。。
展开
 我来答
woshizhuzhenna
2011-10-22
知道答主
回答量:15
采纳率:0%
帮助的人:10.1万
展开全部
$sql="select * from [acqst_member] where acqst_member_username='$acqst_member_username' and acqst_member_password='$acqst_member_password'";
你写的这一句应该有错改改吧
更多追问追答
追问
检查了 好几遍了。还是不行。
追答
[acqst_member] 这个变量是从哪里来的呀查询没有表名呀
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式