Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-08 Thread Nisse Engström
On Sat, 8 Aug 2009 16:25:24 +0200, "Ralph Deffke" wrote: > but then ur byond simple select, man, I do hate unions > and try to avoid those. Hear, hear! I'll look into that stuff in my next life, perhaps. /Nisse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-08 Thread Ralph Deffke
but then ur byond simple select, man, I do hate unions and try to avoid those. "Nisse Engström" wrote in message news:8b.50.40613.c518d...@pb1.pair.com... > On Sat, 8 Aug 2009 15:01:42 +0200, "Ralph Deffke" wrote: > > > of course u can do this by sql. > > > > see this > > SELECT * > > FROM `some

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-08 Thread Nisse Engström
On Sat, 8 Aug 2009 15:01:42 +0200, "Ralph Deffke" wrote: > of course u can do this by sql. > > see this > SELECT * > FROM `sometable` > LIMIT 0 , 30 > > gives u max 30 records if existstarting at record 0 > > on the next request u could say > SELECT * > FROM `sometable` > LIMIT 30 , 30 > > giv

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-08 Thread Ralph Deffke
of course u can do this by sql. see this SELECT * FROM `sometable` LIMIT 0 , 30 gives u max 30 records if existstarting at record 0 on the next request u could say SELECT * FROM `sometable` LIMIT 30 , 30 giving u max 30 recotds starting at record 30 ralph ralph_def...@yahoo.de "Nisse Engströ

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-08 Thread Nisse Engström
On Thu, 6 Aug 2009 12:42:49 -0600, Govinda wrote: >> Others have mentioned variable variables. While I have >> used those, I tend to prefer arrays: > > ah, yes, I see that too, now. Thanks for reminding me about arrays. > (You must be quite adept at arrays. ) I don't know, but I often stuff t

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-06 Thread Govinda
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

[PHP] Re: dynamically naming PHP vars on the fly?

2009-08-06 Thread Nisse Engström
On Wed, 5 Aug 2009 16:17:26 -0600, Govinda wrote: > I want to do this: > (I am just assuming it won't work; I haven't even tried it yet) > > $var1='apple'; > $Fruit_$var1="organic"; > echo "$Fruit_apple"; // I want this to return "organic" > > Or how are you guys dynamically naming PHP vars on t

[PHP] Re: dynamically naming PHP vars on the fly?

2009-08-05 Thread Ralph Deffke
u can "dynamical" chosse a variable name with a variable using a "douple" $ charachter eg. $a = "this is a": $b = "a"; echo $$b; outputs "this is a" this is an all open feature to u have fun ralph "Govinda" wrote in message news:a215e849-2602-4cb3-9da7-718ff047a...@gmail.com... > HI all > > O