/** * Fetch a result row as an associative array, group per table * * @param int $opt Additional options as binary list * @return array */ public function fetchPerTable($opt = 0) { $values = array(); $row = $this->native->fetch_row(); if (!isset($row)) { return null; } $this->native->field_seek(0); while ($field = $this->native->fetch_field()) { list(, $values[$field->table][$field->name]) = each($row); } return $values; }
public function getResult($row = 0, $field = 0) { $this->result->data_seek($row); $this->result->field_seek($field); return $this->result->fetch_field(); }