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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.