Fishhead
01-26-2010, 05:58 AM
I have searched for hours and resigned myself to asking here for a solution.
I am working on a webpage that will record commercial fishermens landings. Each fisherman will have a username and password. He can login to view his account. Government monitors will enter landings data. The fisherman would like to see a table that display the fish caught for each delivery. Each delivery is stored in a mysql data base as a row. When a fisherman logon to the site, his username becomes session variable that filters his landing records.
I have construct the table to display the landing. I have place a button label next on the page that passes to a second page which is identical in appearance, but here the code seeks the next higher landing record for that fisherman. On this second page, repeated clicks on the Next button will advance through the records showing all of the deliveries. This all works fine. But if the Next button is continued to be clicked, and there are no more records, only a blank page (with labels) is displayed.
How can I stop that advance through the records at the last record found?
I am working on a webpage that will record commercial fishermens landings. Each fisherman will have a username and password. He can login to view his account. Government monitors will enter landings data. The fisherman would like to see a table that display the fish caught for each delivery. Each delivery is stored in a mysql data base as a row. When a fisherman logon to the site, his username becomes session variable that filters his landing records.
I have construct the table to display the landing. I have place a button label next on the page that passes to a second page which is identical in appearance, but here the code seeks the next higher landing record for that fisherman. On this second page, repeated clicks on the Next button will advance through the records showing all of the deliveries. This all works fine. But if the Next button is continued to be clicked, and there are no more records, only a blank page (with labels) is displayed.
How can I stop that advance through the records at the last record found?