![]() |
|
#1
|
|||
|
|||
Find end of mysql fileOk so I have a script set up that reads from a mysql database and for every record that it has it makes a page for each record. I have a navigation bar at the bottom of the page that allows the user to click ( Previous | Next ) to let the user navigate through the pages. I made it for when the first page is up "Previous" does not show. That was easy! Ok now when I get to the last page I need to check the database to see if there is a next record and if not to make "Next" dissapear. That is my problem, finding the end of the database file. I am using nested "if" statements to check. So what exactly am I looking for I do not know if it is
PHP Code:
Thanks Last edited by LuciWiz : 06-Jun-2006 at 08:28.
Reason: Please insert your Php code between [php] & [/php] tags
|
|
#2
|
||||
|
||||
Re: Find end of mysql fileUsually, you get the last page from the $totalpages count.
For example: PHP Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Last Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 07:44 |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 10:53 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 11:28 |
| How Do i get php to find out the file type of a file for me? | viperman95833 | MySQL / PHP Forum | 2 | 08-Mar-2003 09:48 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The