Jump to content

do not repeat same names from fetched rows


violinrocker

Recommended Posts

i want to fetch contributors in adding certain articles... so its like

 

select contributors from table where id=id

 

the table looks like this.

 

title                contributor

----------------------------------

art1                me

art2                me

art3                you

art4                me

art5                you

 

I then need to echo the contributors... what do i do so that it echoes one name only once, no duplicates... thanks. I tried searching google but im not sure about my keywords

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.