in reply to next prev record mysql table
where $place is equal to what record you want. You will need to keep track of what record you are on by writing to a hidden input value in your html or writing a cookie. Of course, you have to do the maintenance of testing for if your are displaying the first record, or the last record and whether to show a Previous button or a Next button. I get the total number of records with:$stmt = "SELECT * FROM tablename LIMIT $place,1";
See my scratch pad for how I did this showing a list of book "reviews" with MySQL and HTML::Template.$stmt = "SELECT COUNT(*) FROM tablename";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: next prev record mysql table
by Anonymous Monk on Dec 07, 2003 at 02:04 UTC | |
by bradcathey (Prior) on Dec 07, 2003 at 03:00 UTC |