Hi,
I'm a newbie to PHP and MySQl so sorry if my question sounds dumb to ya all. 🙂
I've got a table like that:
id | category | name
1 | cats | black cat
2 | cats | silly cat
3 | cats | fat cat
4 | dogs | big dog
5 | dogs | old dog
6 | dogs | dumb dog
7| mice | hungry mouse
8 | mice | greedy mouse
9| mice | pink mouse etc.
I want to make a navigation bar where all items listed and sorted by category with pagining but prev/next links only appear for the current category so the output shoud be:
Cats 1 2 3 | Mice 1 2 3
Dogs prev 1 2 3 next
- if we're on any Dogs page.
I searched the forum, figured out it could be done with nested WHILE loops... maybe... and i also found a cool pagination script that works like a charm... but my poor exhausted brain can't put pieces of this puzzle together. So any help/ideas/links are greatly appreciated. And btw maybe it's better to create a separate table for each category? TIA