Jump to content

Dynamic population of list


mhodgson

Recommended Posts

If I have a table, eg.

 

ID - animal types

1  - cat, dog, elephant, rhino

2  - cat, rhino, frog

3  - dog, frog, tiger

 

How can I create a list of all the animal types but without the duplication names, so that say 'cat' or 'frog' only appears once in the list?

 

This will then be used to populate a select box/list.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/97046-dynamic-population-of-list/
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.