(Created page with "{{smcfunc |function=db_data_seek |usage=$smcFunc['db_data_seek'] (result, row_number) |description=Works exactly like [http://php.net/mysql_data_seek mysql_data_seek], it moves t...") |
No edit summary |
||
Line 14: | Line 14: | ||
<noinclude> | <noinclude> | ||
[[Category:Database Functions | [[Category:Database Functions]]</noinclude> | ||
Revision as of 21:48, 8 October 2012
Usage:
$smcFunc['db_data_seek'] (result, row_number)
Description: Works exactly like mysql_data_seek, it moves the internal row pointer for result the the row specified in row_number. Emulated while using PostgreSQL with smf_db_data_seek.
Parameters:
- result a query resource obtained with db_query.
- row_number is the row number you wish the pointer to be at.
Return: true on success, false on failure.
Example:
// Start from the beginning... if ($reset) return @$smcFunc['db_data_seek']($messages_request, 0);