Only use connect

This commit is contained in:
Michael RICOIS 2012-01-30 16:20:45 +00:00
parent fba1feccd4
commit c891e32acb

View File

@ -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;