Jump to content

Displaying Data from Database


.Darkman

Recommended Posts

Hello Everybody,

 

I know the basics of displaying data from mysql database. Now i need some advanced help.

 

Let me explain with an example:

 

I have 4 rows and 1 column in my table.

 

1st row : "rat, cat, elephant"

2nd row : "cat, lion, tiger"

3rd row : "elephant, rat, lion"

4th row : "cat, tiger, bear"

 

I have these data. (i.e) few words separated by comma. Some words repeat.

 

Now i want to display information from this table as :

rat

cat

elephant

lion

tiger

bear

 

(i.e) I want to display all the names but without repetition. How do i do it ?

 

Please Help.

 

 

 

Thanks,

Link to comment
https://forums.phpfreaks.com/topic/49168-displaying-data-from-database/
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.