/[dolibarr]/dolibarr/htdocs/lib/mysql.lib.php
ViewVC logotype

Diff of /dolibarr/htdocs/lib/mysql.lib.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.65 by eldy, Fri Sep 9 20:10:43 2005 UTC revision 1.66 by eldy, Sat Sep 10 15:44:47 2005 UTC
# Line 90  class DoliDb Line 90  class DoliDb
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;
# Line 161  class DoliDb Line 171  class DoliDb
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      }      }

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26