Well originally, $g, as an incrementing integer would eventually be equal to a number I had in my database (storing a number 1-12) so I knew exactly what I had, and how to match it. Now, I could have any number of items in the drop down, and I want to have the correct one selected for this record.
Does that make sense? I don't know if I'm explaining this right...
thanks!
[edit]
For instance, right now I have:
Website Development
Logo Development
Collateral
as options in my database. More may be added dynamically. They are section labels for portfolio pieces, and when the data for a portfolio piece is viewed for editing, I want to populate a "Select a section" drop down box that already has that piece's section selected. Does that make more sense? 🙂