Query: cubrid_data_seek
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CUBRID_DATA_SEEK(3) 1 CUBRID_DATA_SEEK(3) cubrid_data_seek - Move the internal row pointer of the CUBRID resultSYNOPSISbool cubrid_data_seek (resource $result, int $row_number)DESCRIPTIONThis function performs the moving of the internal row pointer of the CUBRID result (associated with the specified result identifier) to point to a specific row number. There are functions, such as cubrid_fetch_assoc(3), which use the current stored value of $row number.PARAMETERSo $result -The result. o $row_number -This is the desired row number of the new result pointer.RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 cubrid_data_seek(3) example <?php $conn = cubrid_connect("127.0.0.1", 33000, "demodb"); $req = cubrid_execute($conn, "SELECT * FROM code"); cubrid_data_seek($req, 0); $result = cubrid_fetch_row($req); var_dump($result); cubrid_data_seek($req, 2); $result = cubrid_fetch_row($req); var_dump($result); cubrid_data_seek($req, 4); $result = cubrid_fetch_row($req); var_dump($result); cubrid_close_request($req); cubrid_disconnect($conn); ?> The above example will output: array(2) { [0]=> string(1) "X" [1]=> string(5) "Mixed" } array(2) { [0]=> string(1) "M" [1]=> string(3) "Man" } array(2) { [0]=> string(1) "S" [1]=> string(6) "Silver" } PHP Documentation Group CUBRID_DATA_SEEK(3)
Related Man Pages |
---|
cubrid_lob2_export(3) - php |
cubrid_lock_read(3) - php |
cubrid_fetch_row(3) - php |
cubrid_get(3) - php |
cubrid_set_add(3) - php |
Similar Topics in the Unix Linux Community |
---|
remove file extension |
Sort numbers which has colon (:) in between |
Conditional Looping In Files |
Subtotal in UNIX |
How to swap the column to row? |