db_data_seek From Online Manual

Revision as of 13:40, 16 July 2011 by Emanuele (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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);



Advertisement: