Hi,
read bogu's solution like:
SELECT * FROM table WHERE rowID<=$rowID LIMIT $numRowsBefore
ALthough it might be prudent to add a bit:
SELECT * FROM table WHERE rowID<=$rowID LIMIT $numRowsBefore order by rowID asc
this will:
Select all fields from table
where the RowID is less then or equal to the selected
You limit the number of recors to be retrieved to a maximum of $numrowsbefore
and you roder the records in the database by rowID in ascending order