function DoUpdate($table, $db, $field, $vars) { $this->db = $db; $this->table = $table; $this->vars = $vars; $this->field = $field; $q = new Query($this->db); $q->exec('SHOW COLUMNS FROM ' . $this->table); $q->inic(); for ($i = 0; $i < $q->numrows; $i++) { $row = $q->data; $this->_col[$row['Field']] = $row['Field']; $q->nxt(); } $q->free(); }