Hi,
as Christophe pointed out BETWEEN should work but you can move the internal row pointer of nearly any database with the data_seek() function.
for mysql: mysql_data_seek(int result_identifier, int row_number)
for mssql:
mssql_data_seek (int result_identifier, int row_number)
and so on. This produces PORTABLE code which I believe to be a good thing.
Greets,
Dominique