function DB($host = 'localhost', $user = '******', $pwd = '', $dbname = '', $dbprefix = '', $open = true)
 {
     $this->system = 'mysqli';
     $this->errlogfile = 'data/errlog_' . $this->system . '.inc.php';
     parent::DB_Driver($host, $user, $pwd, $dbname, $dbprefix, $open);
     $this->freeResult = false;
     $this->fieldType = array(0 => "decimal", 1 => "tinyint", 2 => "smallint", 3 => "integer", 4 => "float", 5 => "double", 7 => "timestamp", 8 => "bigint", 9 => "mediumint", 10 => "date", 11 => "time", 12 => "datetime", 13 => "year", 14 => "date", 16 => "bit", 246 => "decimal", 247 => "enum", 248 => "set", 249 => "tinyblob", 250 => "mediumblob", 251 => "longblob", 252 => "blob", 253 => "varchar", 254 => "char", 255 => "geometry");
 }
 function DB($host = 'localhost', $user = '******', $pwd = '', $dbname = '', $dbprefix = '', $open = true)
 {
     $this->system = 'mysql';
     if (version_compare(PHP_VERSION, "4.3.0", ">=") && viscacha_function_exists('mysql_real_escape_string') == true) {
         $this->escaper = 'mysql_real_escape_string';
     } else {
         $this->escaper = 'mysql_escape_string';
     }
     $this->errlogfile = 'data/errlog_' . $this->system . '.inc.php';
     parent::DB_Driver($host, $user, $pwd, $dbname, $dbprefix, $open);
     $this->freeResult = $this->persistence == 1;
 }
 function DB($host = 'localhost', $user = '******', $pwd = '', $dbname = '', $dbprefix = '', $open = true)
 {
     $this->system = 'mysql';
     $this->errlogfile = 'data/errlog_' . $this->system . '.inc.php';
     parent::DB_Driver($host, $user, $pwd, $dbname, $dbprefix, $open);
     @ini_set('mysql.trace_mode', 0);
     $tracemode = @ini_get('mysql.trace_mode');
     if ($tracemode == 'ON' || $tracemode == 'On' || $tracemode === true || $tracemode == '1') {
         $this->freeResult = true;
     } else {
         $this->freeResult = false;
     }
 }
Example #4
0
 function add_new($data)
 {
     return parent::insert($this->_table_name, $data);
 }