maxdb_stmt_data_seek
maxdb_stmt::data_seek
Seeks to an arbitray row in statement result set
&reftitle.description;
&style.procedural;
boolmaxdb_stmt_data_seek
resourcestatement
intoffset
&style.oop;
boolmaxdb_stmt::data_seek
intoffset
The maxdb_stmt_data_seek function seeks to an arbitrary result pointer
specified by the offset in the statement result set represented by
statement. The offset parameter must be between
zero and the total number of rows minus one (0..maxdb_stmt_num_rows - 1).
&reftitle.returnvalues;
&return.success;
&reftitle.examples;
&style.oop;
prepare($query)) {
/* execute query */
$stmt->execute();
/* bind result variables */
$stmt->bind_result($name, $code);
/* store result */
$stmt->store_result();
/* seek to row no. 5 */
$stmt->data_seek(5);
/* fetch values */
$stmt->fetch();
printf ("City: %s Zip: %s\n", $name, $code);
/* close statement */
$stmt->close();
}
/* close connection */
$maxdb->close();
?>
]]>
&style.procedural;
]]>
&example.outputs.similar;
&reftitle.seealso;
maxdb_prepare