php loop probs
- Started
- Last post
- 8 Responses
- jpea
hey all,
anyone happen to know the syntax for this to work correctly?
- heavyt0
after a quick glance, it seems that you are referencing an array ( "[0]" ) in the first, and in the second it is just a number at the end of a string.
TR1
- jpea0
how would i go about having php reference sequential variables?
such as :
variable0
variable1
variable2
...hard coding the numbers in works fine, but i can't get php to auto-increment the variable
- heavyt0
i think that the code i put in pastebin will work.
- jpea0
sadly, no :(
unexpected T_VARIABLE
- fugged0
you want to dereference the variable.
check the section on dynamic vairables on this page or just google php and dynbamic variables
- fugged0
dynbamic kicks ass.
- Mimio0
Is that a result array from a db query? Are you just getting the last entry in the array?
- jpea0
it's being sent out of flash with a LoadVars. I'm gathering up an array from flash and pushing it into php.
i ended up figuring out the solution
fugged pointed me into a good direction :)