Qual: Meilleur gestion erreur si fonctions mysql non dispo sur le php

This commit is contained in:
Laurent Destailleur 2005-09-10 20:44:10 +00:00
parent 5534aa3fba
commit fb3640a7cb

View File

@ -171,7 +171,7 @@ class DoliDb
*/ */
function connect($host, $login, $passwd, $name) function connect($host, $login, $passwd, $name)
{ {
$this->db = mysql_connect($host, $login, $passwd); $this->db = @mysql_connect($host, $login, $passwd);
//print "Resultat fonction connect: ".$this->db; //print "Resultat fonction connect: ".$this->db;
return $this->db; return $this->db;
} }