diff --git a/mysql/ez_sql_mysql.php b/mysql/ez_sql_mysql.php index 4a55aea..4093e84 100755 --- a/mysql/ez_sql_mysql.php +++ b/mysql/ez_sql_mysql.php @@ -136,7 +136,7 @@ public function connect($dbuser='', $dbpassword='', $dbhost='localhost', $charse if ( empty($this->dbuser) ) { $this->register_error($this->ezsql_mysql_str[1] . ' in ' . __FILE__ . ' on line ' . __LINE__); $this->show_errors ? trigger_error($this->ezsql_mysql_str[1], E_USER_WARNING) : null; - } else if ( ! $this->dbh = @mysql_connect($this->dbhost, $$this->dbuser, $this->dbpassword, true, 131074) ) { + } else if ( ! $this->dbh = @mysql_connect($this->dbhost, $this->dbuser, $this->dbpassword, true, 131074) ) { // Try to establish the server database handle $this->register_error($this->ezsql_mysql_str[2] . ' in ' . __FILE__ . ' on line ' . __LINE__); $this->show_errors ? trigger_error($this->ezsql_mysql_str[2], E_USER_WARNING) : null;