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

 

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.