90 |
$this->transaction_opened=0; |
$this->transaction_opened=0; |
91 |
|
|
92 |
//print "Name DB: $host,$user,$pass,$name<br>"; |
//print "Name DB: $host,$user,$pass,$name<br>"; |
93 |
|
|
94 |
|
if (! function_exists(mysql_connect)) |
95 |
|
{ |
96 |
|
$this->connected = 0; |
97 |
|
$this->ok = 0; |
98 |
|
$this->error="Mysql PHP functions are not available in this version of PHP"; |
99 |
|
dolibarr_syslog("DoliDB::DoliDB : Mysql PHP functions are not available in this version of PHP"); |
100 |
|
return $this->ok; |
101 |
|
} |
102 |
|
|
103 |
if (! $host) |
if (! $host) |
104 |
{ |
{ |
105 |
$this->connected = 0; |
$this->connected = 0; |
171 |
*/ |
*/ |
172 |
function connect($host, $login, $passwd, $name) |
function connect($host, $login, $passwd, $name) |
173 |
{ |
{ |
174 |
$this->db = @mysql_connect($host, $login, $passwd); |
$this->db = mysql_connect($host, $login, $passwd); |
175 |
//print "Resultat fonction connect: ".$this->db; |
//print "Resultat fonction connect: ".$this->db; |
176 |
return $this->db; |
return $this->db; |
177 |
} |
} |