SHOW:
|
|
- or go back to the newest paste.
1 | - | $this->fields = $this->db->getAll('SHOW COLUMNS FROM ?n', $this->_table_name); |
1 | + | $fields = $this->db->getAll('SHOW COLUMNS FROM ?n', $this->_table_name); |
2 | - | foreach ($this->fields as $key => $field) { |
2 | + | foreach ($fields as $key => $field) { |
3 | - | $this->fields[$this->fields[$key]['Field']] = $this->fields[$key]; |
3 | + | $this->fields[$fields[$key]['Field']] = $fields[$key]; |
4 | - | unset($this->fields[$key]); |
4 | + |