1
Hi All,
I am going to try and port a script into xoops, I know this is going to sound rediculous, but for starters I can not get this script to work without xoops, it will not connect with the database even though the correct inputs are there, I have messed around for ages and can not get it working, this is the config file:
$dbServer = "localhost";
$dbuserName = "username";
$dbpassword = "password";
$dbName ="database";
$site_title = "Rate My Site";
$site_copyright = "Rate My Site";
$bannerprice ="0.50";
$newletterprice ="0.76";
$paypalemail ="";
$stormpayemail = "";
$passwordemail = "email@domain.com"; // This email is the address that the password retrievel will come from
///////////////////// DO NOY EDIT BELOW /////////////////////////////////////////
$con=mysql_connect ($dbServer, $dbuserName, $dbpassword) or die ('Cannot connect to the database.');
$db=mysql_select_db ($dbName);
session_start();
?>
Obviously, username/password etc.. have been removed/changed
The error message I am getting is this:
Quote:
Warning: mysql_connect(): Access denied for user 'username'@'localhost' (using password: YES) in /usr/home/mercedes/domains/domain.net/public_html/rate/config.php on line 15
Cannot connect to the database.
I know this is not a XOOPS module but can anyone help me with this, once this is sorted I can begin to have a go at porting it. I can't see any problems within the script, all of the database settings are correct aswell?????
Please help, somebody who knows a lot about php/mysql
Thanks in advance
Nick