Hi there,
I'm a little puzzled (or not thinking clearly). I've simplified my needs in the example below, but would appreciate any help/guidance.
I have a table "Colors" that contains two fields, ID and Color_Name. There are five records in the table:
1 red
2 blue
3 green
4 yellow
5 gold
I'd like to build an array based on these values. Something that will look like this:
$array = array('red', 'blue', 'green', 'yellow', 'gold');
But, I'd like to do this via a query to the db. I'm not sure how to go about something like this. Can anyone provide an example?