mysql_field_seek

bool mysql_field_seek(mysql result result_handle, int field_offset) 
result_handle Result handle returned by mysql_db_query() or mysql_query()
field_offset Field offset to move to

Jumps to a specific field in a MySQL query result.

Returns:

TRUE on success; FALSE on error

Description:

mysql_field_seek() moves the internal pointer in a MySQL query result set to a specific field. Field offsets start at 0.

To be honest, this function is of very limited use. Only the mysql_fetch_field() function is affected by it, using the field offset set by mysql_field_seek() if a field offset is not specified in the call to mysql_fetch_field().

Version:

PHP 3+, PHP 4+

See also:

To move to a specific row in a result set:

 mysql_data_seek() ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.