Warning: Access denied for user: 'root@localhost' (Using password: NO) in c:\apache\htdocs\addbook\index.php on line 21 改成这样$connect=mysql_connect("localhost", "root", ""); 还是有错误:Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO) in c:\apache\htdocs\addbook\index.php on line 21Warning: Supplied argument is not a valid MySQL-Link resource in c:\apache\htdocs\addbook\index.php on line 22Warning: Supplied argument is not a valid MySQL result resource in c:\apache\htdocs\addbook\index.php on line 25
看看是什么错误
改成这样$connect=mysql_connect("localhost", "root", "");
还是有错误:Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO) in c:\apache\htdocs\addbook\index.php on line 21Warning: Supplied argument is not a valid MySQL-Link resource in c:\apache\htdocs\addbook\index.php on line 22Warning: Supplied argument is not a valid MySQL result resource in c:\apache\htdocs\addbook\index.php on line 25