Ajout du port
This commit is contained in:
parent
211c8c46b3
commit
8506f8099a
@ -19,7 +19,9 @@ class WDB {
|
||||
else $this->password=$password;
|
||||
if ($database=='') $this->database=MYSQL_DEFAULT_DB;
|
||||
else $this->database=$database;
|
||||
|
||||
|
||||
if (defined(MYSQL_PORT)) $this->host = $this->host.':'.MYSQL_PORT;
|
||||
|
||||
$this->con_id = mysql_pconnect($this->host, $this->user, $this->password);
|
||||
if (!($this->con_id === false)) {
|
||||
if (mysql_select_db($this->database, $this->con_id) === false) {
|
||||
|
Loading…
Reference in New Issue
Block a user