maxdb_stmt_data_seek stmt->data_seek Seeks to an arbitray row in statement result set 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). Return values &return.success; See also maxdb_prepare Example 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 ]]> The above examples would produce the following output: