correction typo

This commit is contained in:
Michael RICOIS 2011-06-09 09:53:08 +00:00
parent 1735ff9f81
commit fe4b7d9dba

View File

@ -20,8 +20,7 @@ class WDB {
if ($database=='') $this->database=MYSQL_DEFAULT_DB; if ($database=='') $this->database=MYSQL_DEFAULT_DB;
else $this->database=$database; else $this->database=$database;
$this->con_id = mysql_pconnect($this->host, $this->user, $this->con_id = mysql_pconnect($this->host, $this->user, $this->password);
$this->password);
if (!($this->con_id === false)) { if (!($this->con_id === false)) {
if (mysql_select_db($this->database, $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; echo date('Y/m/d - H:i:s') ." - ERREUR ".mysql_errno()." : Connection à la base de données impossible !".EOL;