Hi,
It is these lines of code that fails
Code:
/*
* Try to connect
*/
$mysql_connect_id = @mysql_connect($xerte_toolkits_site->database_host, $xerte_toolkits_site->database_username, $xerte_toolkits_site->database_password);
/*
* Check for connection and error if failed
*/
if (!$mysql_connect_id) {
die("<h2>Xerte Online Toolkits</h2>
<p><strong>Sorry, the system cannot connect to the database at present</strong></p>
<p>This may be because the database server is offline, or this instance of Xerte has not been setup (see <a href='setup'>/setup</a>). </p>
<p>The mysql error is <strong>" . mysql_error() . "</strong></p>");
}
so there must be something amiss either in your database setup or in the username/password pair as
Code:
@mysql_connect($xerte_toolkits_site->database_host, $xerte_toolkits_site->database_username, $xerte_toolkits_site->database_password);
does nothing special... please recheck that you have the "hostname" in the correct var in database.php (host and not database name or table prefix). and double check your documentation that you don't need to prefix the username with domain/ or something...
John