/    Sign up×
Community /Pin to ProfileBookmark

seperate categories

I have a database table with products, that are assigned to categories. I have a page now that shows all the items broken in to x number of pages. What I’d like to do is have some sort of heading or image that has the category name, then all the products listed under that category, then the next category, and it’s products. How would I go about doing that?

So it would look something like:

Padfolios
[INDENT]item1 item2 item3[/INDENT]
[INDENT]item4 item5 item6[/INDENT]
Note Cubes
[INDENT]item1 item2 item3[/INDENT]
[INDENT]item4 item5 item6[/INDENT]
General Merchandise
[INDENT]item1 item2 item3[/INDENT]

Thanks!

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @jrthor2 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 12.1,
social: @webDeveloperHQ,
});

legal: ({
terms: of use,
privacy: policy
analytics: Fullres
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: Anonymous,
tipped: article
amount: 1000 SATS,

tipper: @aldoushuxley,
tipped: article
amount: 1000 SATS,

tipper: Anonymous,
tipped: article
amount: 1000 SATS,
)...