Getting all rows of a certain column when grouping?
| From: | Leif K-Brooks | Date: | Sat, 18 Jan 2003 16:00:12 +0000 |
| Subject: | Getting all rows of a certain column when grouping? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-24929@lists.php.net to get a copy of this message | ||
I have a table that stores smileys users can use. I'm trying to make a page that lists them in an HTML table something like:
|----------------|
| Smiley | Image |
|--------|-------|
|:), :-) | IMAGE |
|:(, :-( | IMAGE |
------------------
I could use a query something like:
select * from smileys group by image
But that would only return one of the possible things the user can type to make that smiley. Is there another way?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it
will be prosecuted to the full extent of the law.