Ajout du port

This commit is contained in:
Michael RICOIS 2012-01-27 16:37:27 +00:00
parent 211c8c46b3
commit 8506f8099a

View File

@ -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) {