Paganation Conflict??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kananga
Forum Newbie
Posts: 6
Joined: Thu Mar 13, 2008 9:37 am

Paganation Conflict??

Post by kananga »

Hi there,

Heres a bit of a tickler....I think i know why ultimately pagnation has been such as pain for me....If you think this could cause a problem then please tell me!!!

The query that searches for records (that will be displayed and pagnation added to) is done so thorugh the use of a hyperlink e.g. (Search for all AnimalExperience records that have the same AnimalID as record being viewed). With this in mind, when i come to view the records with their pagnation it looks fine but ONLY for that 1st page it wont work any further....

The browser says: http://localhost/woodside/add_animal_ex ... ecordID=51

But when go page 2 it says: http://localhost/woodside/add_animal_exp1.php?page=2

So it has like forgoten the original AnimalID that was 51????

I hope im making some sense!!??

If anybody knows what im saying and has answer please get back to me.

Thanks
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: Paganation Conflict??

Post by Zoxive »

Make the link something like..

add_animal_exp1.php?recordID=51&page=2
kananga
Forum Newbie
Posts: 6
Joined: Thu Mar 13, 2008 9:37 am

Re: Paganation Conflict??

Post by kananga »

Hi there,

Thanks for reply how would i implement that in the hyperlink?? Would it work to test it by manually putting it in browser?? pasting &page=2 to the end of it??

Coz it navigates ok, but the records themselves never change??

Thanks

:)
Post Reply