I have recently started to work on MySQL, PHP and apache and I\'m still finding my way round. Having installed apache 2.0.44 (successfully), with MySQL 4.0 and PHP 4.3.2 I found this script which is suppose to help show that all works with PHP/MySQL. The code is:
<html>
<head><title></title></head>
<body>
<?php
$host=\"localhost\";
$user=\"pj\";
$password=\"buzz\";
mysql_connect($host, $user, $password);
$db_table = mysql_list_dbs();
for ($i = 0; $i < mysql_num_rows($db_table); $i++) {
echo(mysql_tablename($db_table, $i));
echo(\"
\");
}
?>
</body>
</html>
However, I keep on getting this error:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user: \'rb@127.0.0.1\' (Using password: YES) in C:Program FilesApache GroupApache2htdocstest.php on line 8
mysql test
Is this test that I\'m trying to do valid? If so what have I done wrong. Any feedback would be much appreciated.
Regards
9AF