phlackee Posted December 22, 2006 Share Posted December 22, 2006 HI All!I have 3 tables:Category, Project , Entry .Category have CatId as PKProject have ProId as Pk and CatId as FKEntry have EntId as Pk, ProId as Fk and Catd as FKHow to make a Next Prev links that if you are inview.php?CatId=11&ProId=22&EntId=111when you choose next, it goes and check who is next record from same category and same project and display,e.g.view.php?CatId=11&ProId=22&EntId=112if there is no entry in that project go to next project , first entry, then dispay entry,view.php?CatId=11&ProId=23&EntId=113and if there is no project in that category display next category with first project and first entry.view.php?CatId=12&ProId=24&EntId=114thanks. Link to comment https://forums.phpfreaks.com/topic/31619-complex-next-prev/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.