|
MySQL Error Help!
This is there error I'm getting:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'dbo421149482'@'108.175.6.25' (using password: YES) in /homepages/28/d420971226/htdocs/inc/database.class.php on line 31
Unable to connect to database
My file code: (Or the part that matters)
[code]
if (!defined('SYSTEM_CLASS_PHP_INCLUDED')) {
require_once dirname(__FILE__) . '/system.class.php';
}
abstract class Database { }
class MySQL extends Database {
protected $lid = 0;
protected $qid = 0;
protected $affrows = 0;
public function __construct($host, $user, $pass, $db, $force = false) {
global $_LANG;
$this->lid = mysql_connect($host, $user, $pass, $force);
if (!$this->lid) {
$this->trigger_error('Unable to connect to database');
}
if (!mysql_select_db($db, $this->lid)) {
$this->trigger_error('Database not found');
}
}
[code]
|