tbrehm
2011-09-07 023e4b4f2e99f96ed5e15835419b4f1485252ef8
server/lib/classes/db_mysql.inc.php
@@ -45,8 +45,7 @@
      var $show_error_messages = true;
      // constructor
      function db()
      {
      public function __construct() {
         
         global $conf;
         $this->dbHost = $conf['db_host'];
@@ -56,13 +55,17 @@
         $this->dbCharset = $conf['db_charset'];
         //$this->connect();
      }
      public function __destruct() {
         $this->closeConn();
      }
      // error handler
      function updateError($location)
      {
         global $app;
         $this->errorNumber = mysql_errno($this->linkId);
         $this->errorMessage = mysql_error($this->linkId);
         $this->errorNumber = @mysql_errno($this->linkId);
         $this->errorMessage = @mysql_error($this->linkId);
         $this->errorLocation = $location;
         if($this->errorNumber && $this->show_error_messages && method_exists($app,'log'))
         {
@@ -76,7 +79,7 @@
      {
         if($this->linkId == 0)
         {
            $this->linkId = mysql_connect($this->dbHost, $this->dbUser, $this->dbPass);
            $this->linkId = @mysql_connect($this->dbHost, $this->dbUser, $this->dbPass);
            if(!$this->linkId)
            {
               $this->updateError('DB::connect()-> mysql_connect');
@@ -463,7 +466,7 @@
       return $this->query($sql);
       }
       
       // gibt Array mit Tabellennamen zurück
       // gibt Array mit Tabellennamen zur�ck
       function getTables($database_name = '') {
         
         if($database_name == '') $database_name = $this->dbName;
@@ -474,7 +477,7 @@
            return $tb_names;       
       }
       
       // gibt Feldinformationen zur Tabelle zurück
       // gibt Feldinformationen zur Tabelle zur�ck
       /*
       $columns = array(action =>   add | alter | drop
                        name =>     Spaltenname