I have paginated page sets..
and I have a search routine in a different html page
it works if the search result goes to a simple page with ten results (the limit count).
Using a href # will jump to my correct result - while also displaying surrounding results.
But if I have six paginated pages of ten results each and the requested result is like row 43, how do I tell the script to "go" to that page [in other words how to select the right rows via offset 'cos I dont know the offset value]
I guess I need a way to calculate the offset value of the row within the result (based on any ORDER BY criteria)
Does this just mean I do the query twice, once to get the row position, next to do the actual select query and pagination?
Or is there a better way :
here's some mock SQL of what I hope exists:
SELECT rowoffset(*) from stuff WHERE row_id=search_id ORDER BY $ordervar