/** * Load the column metadata from the last query. * @return array */ public function load_col_info() { if ($this->col_info) { return $this->col_info; } $num_fields = $this->result->field_count; for ($i = 0; $i < $num_fields; $i++) { $this->col_info[$i] = $this->result->fetch_field_direct($i); } return $this->col_info; }