I have data in a table.
I get it to show based on a variable, something like:
...("SELECT pageNumber, capter FROM t1 WHERE book_id = '$bID' ");
I would like to add PREVIOUS | NEXT links. I have a few blurry areas though, where I need some help.
First, the page numbers stored in a table could be in random order. So I guess I need to ORDER BY pageNumber first, right?
Then, What if I am on the first chapter -- I need to knwo that and hide PREVIOUS link. Same goes for NEXT if i'm on the last chapter...
:bemused: