What I have right now is the category name is put up in the url like so

subcategory.php?id=Drivers

that way i can use that get variable to query the database and list all the entried from that database on the page. What I need to do though is limit how many row are being displayed and when it goes past that number to add another link to a new page. I need to use that page number so that the user can go back and forth between pages. Is it possible to put something like

subcategory.php?id=1

together with the category name variable?

Yes, just separate further variables with & instead of ?.

subcategory.php?id=1&category=drivers&type=3

Sidenote: As usual, don't forget to properly sanitize any get/post input you're using with the database =)

You just have to give them different names like:

subcategory.php?category=Drivers&page=1

You are limited though on the length of your querystring.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.