没有看懂是什么问题解决不了?不过看到 $query=mysql_query("select * from $user_table where user_name='$user' and user_pass='$password'");就肯定不行了。。 改成下面的。。 $query=mysql_query("select * from $user_table where user_name='".$_POST["user"]."' and user_pass='".$_POST["password"]."'");
$query=mysql_query("select * from $user_table where user_name='$user' and user_pass='$password'"); 改成这样也可以 $query=mysql_query("select * from ".$user_table". where user_name='".$user."' and user_pass='".$password."'"); 这样 不过楼主的问题不说出来,去看你的代码太累呀
hxzjj(张佚凡) ( ) 信誉:100 2006-03-08 20:09:00 得分: 0
大哥我正找不出问题,才发出求助的呀!
哈哈。楼主好可爱,没有发现问题为什么发出来求助?散分吗??我喜欢。
$query=mysql_query("select * from $user_table where user_name='$user' and user_pass='$password'"); 没看见你这里的$user和$password变量值从哪里来? 在这句之前加上 $user=$_post['user']; 和 $password=$_post['password']; 写程序要细心!
的display_error我已设置为On了!
但是我还是找不到错误!呀!
$query=mysql_query("select * from $user_table where user_name='$user' and user_pass='$password'");就肯定不行了。。
改成下面的。。
$query=mysql_query("select * from $user_table where user_name='".$_POST["user"]."' and user_pass='".$_POST["password"]."'");
改成这样也可以
$query=mysql_query("select * from ".$user_table". where user_name='".$user."' and user_pass='".$password."'");
这样
不过楼主的问题不说出来,去看你的代码太累呀
大哥我正找不出问题,才发出求助的呀!
哈哈。楼主好可爱,没有发现问题为什么发出来求助?散分吗??我喜欢。
没看见你这里的$user和$password变量值从哪里来?
在这句之前加上
$user=$_post['user'];
和
$password=$_post['password'];
写程序要细心!