maxdb_stmt_data_seek
stmt->data_seek
Seeks to an arbitray row in statement result set
&reftitle.description;
Procedural style:
boolmaxdb_stmt_data_seek
resourcestatement
intoffset
Object oriented style (method):
stmt
bool
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;
Object oriented style
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();
?>
]]>
Procedural style
]]>
&example.outputs.similar;
&reftitle.seealso;
maxdb_prepare