Re: [php-list] display variable based on loop variable

2008-10-04 Thread James Keeline
--- On Sat, 10/4/08, Tedit kap <[EMAIL PROTECTED]> wrote: > I am trying to automatically display a variable, based on > the value of $i variable in a loop. For example, I have $q1, > $q2, $q3, $q4 variables and so on. So what I want is, to > display $q1 if $i=1, display $q2 if $i=2 and so on...How

[php-list] display variable based on loop variable

2008-10-04 Thread Tedit kap
Hi, I am trying to automatically display a variable, based on the value of $i variable in a loop. For example, I have $q1, $q2, $q3, $q4 variables and so on. So what I want is, to display $q1 if $i=1, display $q2 if $i=2 and so on...How can I do that? I tried creating a separate new variable to