php man page for cubrid_data_seek

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 result

SYNOPSIS
bool cubrid_data_seek (resource $result, int $row_number)
DESCRIPTION
This 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.
PARAMETERS
o $result -The result. o $row_number -This is the desired row number of the new result pointer.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #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_fetch_assoc(3) - php
cubrid_lob2_export(3) - php
cubrid_lob2_write(3) - php
cubrid_lob2_read(3) - php
cubrid_set_drop(3) - php
Similar Topics in the Unix Linux Community
[req] hp ux HP0-091 csa certification study material
remove file extension
Conditional Looping In Files
Subtotal in UNIX
How to swap the column to row?