Jump to content

[SOLVED] Getting all the different values for a column ?


lxndr

Recommended Posts

I have a table with a column called 'forename' and what I want to be able to do is put all the different values for forenames into a PHP array but only once each, i.e. if there are 20 instances of the forename "John" I only want one of them, in other words I want to capture all the different values.  I could do this I guess by using an SQL GROUP query but was wondering if there was a better/more efficient way ?

 

..

 

 

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.