Jump to content

fetching sql data removing duplicates?


Eggzorcist

Recommended Posts

Hi there, I was just wondering if there was a straightforward command to fetch info from the db but only unique fields? For example, I have a product list and each products belongs to a category that is user generated. I want to make a category list. but there are hundreds of categories with maybe 8-15 categories. How can I fetch the categories while only fetching 1 variable per category?

 

If someone can point me in the right direction that would be great!

Link to comment
https://forums.phpfreaks.com/topic/264261-fetching-sql-data-removing-duplicates/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.