喜悦国际村 
» 游客:  注册 | 登录 | 搜索 | 统计 | 喜悦证交所 | 帮助

RSS 订阅当前论坛  

上一主题 下一主题
     
标题: 求助!为什么本地测试没问题!上传空间就出现问题了!  
 
lichangcheng (lichangcheng)
注册会员
Rank: 2
初级会员



UID 66518
精华 0
积分 118
帖子 61
金钱 118 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2005-9-9
状态 离线
求助!为什么本地测试没问题!上传空间就出现问题了!

以下是我写的验证登陆代码!
为什么在本地测试正常
但是传到空间上却出现这样的错误
代码如下
<? session_start();
include("conn.php");
$mingzi=trim($_REQUEST["mingzi"]);
$mima=trim($_REQUEST["mima"]);
  if ($mingzi==""or $mima=="")
  { echo "<script> alert('不能为空'); history.back();</script>";
  }
  else
   {
   $sql="select * from guanliyuan where mingzi='$mingzi' and mima='$mima'";
   $result=mysql_query($sql);
   $rsnum=mysql_num_rows($result);
   if ($rsnum==0)
   { echo "<script>alert('用户名或密码错误');history.back();</script>";}
   else
   {$url="guanli.php";
    $_SESSION['mingzi']=$mingzi;
   echo "<br><br><br><center><font size=-1 color=red>验证已经通过!将转向管理首页<br><br>谢谢您使用本系统</font></center>";
     echo "<meta http-equiv=refresh content=2;url=".$url. ">";
       
   }
   }?>

空间提示错误如下
mysql_num_rows(): supplied argument is not a valid MySQL
请大侠们帮帮忙啊!在线等
2006-7-31 08:40 AM#1
查看资料  发短消息  顶部
     


  可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题 | 开通个人空间  


 


Powered by Discuz! 6.1.0  © 2001-2010 Comsenz Inc.
Processed in 0.106515 second(s), 6 queries

(冀ICP备05009913号) 管理员:sadly 邮箱/MSN: sadly@phpx.com QQ:824008(长隐) 清除 Cookies - - Archiver - WAP