Forum Moderators: coopster
It includes an admin section where i Have to log in and then I can add edit or delet products from the site. I was able to do this without any prob before, but it has started giving me an error:
The host, username and password combination were incorrect
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\wwwroot\fantasy\utils\Database.php on line 120
Referring to the following section:
} // function install()
function error_msg($type,$addition = "") {
$errors = array("conn" => "The host, username and password combination were incorrect",
"database" => "It was not possible to connect to the database: <b>$addition</b>",
"query" => "The following query could not be performed: <b>$addition</b>",
"install_open" => "You must open a connection to the database before you can install",
"install_file" => "The installation file does not exist: <b>$addition</b>");
if ($this->debug) {
echo "<p>".$errors[$type]."</p>";
(line 120) echo "<p>".mysql_error($this->conn)."</p>";
}
} // function error_msg()
I thoguht it was because I didnt install the DB properly, and when I try to do that, i get a similar error:
The host, username and password combination were incorrect
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\wwwroot\fantasy\utils\Database.php on line 120
You must open a connection to the database before you can install
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\wwwroot\fantasy\utils\Database.php on line 120
If there are no error messages printed, the database has installed correctly
Please help if anyone can, or if more info is needed, lemme know...
Thanks