[PHP] Re: Variables within variable names

2002-05-03 Thread Fearless Froggie
Once I had a bit of experience with variable variables, I found them very useful. But I did discover that you can't embed variable variables (or values from arrays) in the SQL statements I was sending to MySQL. I had to create a temporary variable for use in my SQL statements. I'm not sure why,

[PHP] Re: Variables within variable names

2002-05-02 Thread HeyJim
I agree with Jason and Miguel, but if you really want to do this, you could try: $type = basic; $user = $type._user; $$user = jaxn; echo $basic_user; I can see where something like this *could* be useful, but I'd still use the arrays. Jim. At 12:43 PM 5/2/02, Jackson Miller wrote: I want to