No edit summary |
m (refresh SMW properties) |
||
Line 12: | Line 12: | ||
return @$smcFunc['db_data_seek']($messages_request, 0);</nowiki> | return @$smcFunc['db_data_seek']($messages_request, 0);</nowiki> | ||
}} | }} | ||
<noinclude> | <noinclude> | ||
[[Category:Database Functions]]</noinclude> | [[Category:Database Functions]]</noinclude> |
Revision as of 16:40, 11 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);