PHP Mysql_data_seek () function tutorial
Definition and usage
The Mysql_data_seek () function moves the inner row pointer.
The continuous internal pointer is the mysql_query () function that is currently ranked in the returned result.
This function returns true for success, or false for failure.
Grammar
Mysql_data_seek (Data,row)
Parameters
Data: Querying from mysql_query database
Rows: Find out how many rows.
Now let's look at an example of Mysql_data_seek.
$sql = "SELECT * from person"; $result = mysql_query ($sql, $con);p Rint_r (Mysql_fetch_row ($result));
Mysql_data_seek ($result, 3);p Rint_r (Mysql_fetch_row ($result));
?>
The result of the output.
Array ([0] = refsnes[1] = Kai jim[2] = taugata)
Array ([0] = refsnes[1] = ståle[2] = Sandnes)
http://www.bkjia.com/PHPjc/630899.html www.bkjia.com true http://www.bkjia.com/PHPjc/630899.html techarticle the PHP mysql_data_seek () function tutorial defines and uses the Mysql_data_seek () function to move internal row pointers. The continuous internal pointer is the mysql_query () function that is currently ranked in the return result ...