in reply to Browsing a sql table on the web
As for saving where you were in the current session, don't bother with fancy session doohickies. Just take the ID of the latest record so far in the database (MAX(ID)?) before you do the first query, and add that to the page 2, 3, etc. page urls. Then you'd do something like this:SELECT <fields> FROM <table> WHERE ... LIMIT 41, 40
SELECT <fields> FROM <table> WHERE id <= 34534 && ... LIMIT 41, 40
|
---|