这是PHP代码。。省略一部分***下面是出错的几句$query="select*fromals_signupwhereUserName='{$_SESSION['UserName']}'andPassword='{$_SESSION['Password']}'";$result=mysql_query...
这是PHP代码
。。省略一部分
***下面是出错的几句
$query="select * from als_signup where UserName='{$_SESSION['UserName']}' and Password='{$_SESSION['Password']}'";
$result=mysql_query($query);
$row=mysql_fetch_array($result);
if ($row)
{
//如果session会话变量用户名与密码匹配,则自动登录,直接跳转到管理页面
header("refresh:1;url=http://localhost/members/manage.php");
exit;
}
这是运行的警告!!
Warning: mysql_query() [function.mysql-query]: Access denied for user
'ODBC'@'localhost' (using password: NO) in D:\wamp\www\phptest\config.php
on line 9
Warning: mysql_query() [function.mysql-query]: A link to the server
could not be established in D:\wamp\www\phptest\config.php on line
9
Warning: mysql_query() [function.mysql-query]: Access denied for user
'ODBC'@'localhost' (using password: NO) in D:\wamp\www\phptest\config.php
on line 12
Warning: mysql_query() [function.mysql-query]: A link to the server
could not be established in D:\wamp\www\phptest\config.php on line
12
Error while creating database (Error1045:"Access denied for user
'ODBC'@'localhost' (using password: NO)")
Warning: session_start()
[function.session-start]: Cannot send
session cache limiter - headers already sent (output started at
D:\wamp\www\phptest\config.php:9) in D:\wamp\www\phptest\login.php on
line 4
Warning: mysql_query() [function.mysql-query]: Access denied for user
'ODBC'@'localhost' (using D:\wamp\www\phptest\login.php on line
6
Warning: mysql_fetch_array(): supplied argument is not a
valid MySQL result resource in D:\wamp\www\phptest\login.php on line
7
展开