Jump to content

Displaying all the results from a table but only one when it is repeated.


ericburnard

Recommended Posts

Hi there, have been trying to work this out for a while now but am really stumped so i need some help.

 

Just to keep it easy i have a table with 4 columns

 

 

id

name

nameid

man/woman

0

barry

1

man

1

barry

1

man

2

george

2

man

3

barry

1

man

 

Basicly what i want to know is how can i my query output barry and george and not barry, barry, George and barry. Im so sure that this is simple but its early in the morning and its annoying me greatly now! I have the man/woman value coming in via a $_get function if this helps at all

 

Thanks a million

Eric

 

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.