sinabug 0 Newbie Poster

Hi all. Maybe someone can help me here. I have a pagination document in php to paginate a large mysql table. This pagination document (by Jatinder Singh Thind, www.phpsense.com) "includes_once" another pagination document that has functions to handle the page links. The functions return a link. I'm trying to get this link to open in my MAIN page. I have a switch case statement in my Index using the variable "menukey". So in the link for the pagination, I have to reference "index.php?menukey=9" in order for it to open in the MAIN page, but when I include this in the link, the table does not progress to the next group of 20. I have 4 more hours to figure this out and I am completely brain froze. Any and all help is greatly appreciated.