Recordset - Several fields in one list...
Hello...
I'm hoping there's a really simple answer to this but I can't seem to find anybody else asking it (unless I'm using the wrong search terms!)
I'm using Dreamweaver CS3 on OS X 10.6.2.
I have a PHPMyAdmin database with 4 fields that I want to display in a recordset...
category1
category2
category3
category4
I want to create one menu list of all distinct entries in all thoses fields, but also have it displayed in alphabetical order.
For example, if the following info appears in the fields (in 5 different entries)...
category1 - red, blue, green, red, red
category2 - black, white, brown, brown, brown
category3 - purple, purple, purple, purple, purple
category4 - pink, orange, null, null, null
I need the recordset to display the list as...
black
blue
brown
green
orange
pink
purple
red
white
So I think need to create one recordset to do this.
I've tried...
select DISTINCT category1, category2, category3, category4
FROM database
ORDER BY category1, category2, category3, category4 ASC
But it just shows the entries from category1 (each entry is repeated many times) e.g.
blue
blue
blue
green
green
green
green
green
red
red
Any help on how to write this Recordet would be great,
Thanks in advance ![]()
