在使用php安装时,出现:Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\myphp\root\register\config.php on line 97
请各位大侠帮帮忙,怎么改啊啊啊啊啊啊啊啊啊啊啊啊源代码如下:
if ($DBprefix != ""){$DBprefix = $DBprefix . "_";}// Code to make sure that the $database field was filled and code to connect to the database
if ($database == ""){
// Check it the database exist
$query = "use members";
// If this query is succesfull, and returns a 1. this means that the database members can be used.
// If it returns 'null' then it doesn't exist.

if (mysql_query($query) == null){
//if it doesn't exist we create it and connect to it.
$query = "CREATE DATABASE members";
$result = mysql_query($query);
if ($result == 1){
$conn = mysql_connect($server,$username,$password) or die ($couldNotConnectMysql); 
mysql_select_db($database,$conn) or die ($couldNotOpenDatabase);
}else{echo "Error while creating database (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")<br>";}
}
else{
// It already exist so we will connect to it.
$database= "members";
$conn = mysql_connect($server,$username,$password) or die ($couldNotConnectMysql); 
mysql_select_db($database,$conn) or die ($couldNotOpenDatabase);
//echo "数据库选择成功了!";
}
}
else{
// connect or show an error.
$conn = mysql_connect($server,$username,$password) or die ($couldNotConnectMysql); 
mysql_select_db($database,$conn) or die ($couldNotOpenDatabase);
}
?>