Others have mentioned variable variables. While I have used those, I tend to prefer arrays: $var1 = 'apple'; $fruits[$var1] = 'organic'; echo $fruits[$var1]; /Nisse
ah, yes, I see that too, now. Thanks for reminding me about arrays. (You must be quite adept at arrays. )(And to give you credit Nisse, I ended up going with your solution ('knock on wood'.. it is not all done yet) from the other php-db list (building an array from data returned from the 3 union all selects- query).)
-G