/** * Get result data. * @param int The row number from the result that's being retrieved. Row numbers start at 0. * @param int The offset of the field being retrieved. * @return array|false The contents of one cell from a MySQL result set on success, or false on failure. */ public function query_result($row, $field = 0) { if (0 == $this->result->num_rows) { return false; } $this->result->data_seek($row); $datarow = $this->result->fetch_array(); return $datarow[$field]; }