Only use connect
This commit is contained in:
parent
fba1feccd4
commit
c891e32acb
@ -22,7 +22,7 @@ class WDB {
|
||||
|
||||
if (defined(MYSQL_PORT)) $this->host = $this->host.':'.MYSQL_PORT;
|
||||
|
||||
$this->con_id = mysql_pconnect($this->host, $this->user, $this->password);
|
||||
$this->con_id = mysql_connect($this->host, $this->user, $this->password);
|
||||
if (!($this->con_id === false)) {
|
||||
if (mysql_select_db($this->database, $this->con_id) === false) {
|
||||
echo date('Y/m/d - H:i:s') ." - ERREUR ".mysql_errno()." : Connection à la base de données impossible !".EOL;
|
||||
|
Loading…
Reference in New Issue
Block a user