I found out what was most likely the problem. I had missing bracket and
then an extra one. I marked them as such below.
In any case I learned a whole bunch more stuff in the process. Thank
you very much for your help. And sorry Jason didn't mean to make it
look like I snubbed you or anything. :)
Jeff Oien pressed the little lettered thingies in this order...
One more thing...
> >>error> if (${"element2$z"} == "select") {
I'm not sure f this has anything to do with it, but I have never made
variable variables work when specified like the above. Try:
${"element2".$z}
I quite hon
Jeff Oien pressed the little lettered thingies in this order...
> I get a 30 timeout on the line indicated when executing this code
> and can't figure it out. Does anyone know why? Thanks.
> Jeff Oien
>
You should pay attention to which variables are in quotes and which are
not. PHP (and ever
> Surely it is somehow not hitting the condition.
> -Rasmus
I coulda sworn I said that ;)
But then I guess it carries more weight when Rasmus says it...
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"Work now, freak later!"
--
PHP General Mailing List (http://www.php.n
Well, get rid of the quotes around $z="1"; and "$Number_Children" to start
with. Then print out $z inside the loop to see what it is doing. Surely
it is somehow not hitting the condition.
-Rasmus
On Mon, 16 Jul 2001, Jeff Oien wrote:
> I don't know. :) I tried again without $Number_Children i
I don't know. :) I tried again without $Number_Children in quotes
and still get the timeout but on a different line (3 lines down). It
seems it isn't necessarily a specific line causing it.
Jeff Oien
> Why is "$Number_Children" in quotes?
>
> On Mon, 16 Jul 2001, Jeff Oien wrote:
>
> > I know
Why is "$Number_Children" in quotes?
On Mon, 16 Jul 2001, Jeff Oien wrote:
> I know $Number_Children is 2. I printed it. And $z starts out as 1.
> I don't think that's it.
> Jeff Oien
>
> > > while ($z <= "$Number_Children") {
> > > >>error> if (${"element2$z"} == "select") {
> >
> > Looks to
I know $Number_Children is 2. I printed it. And $z starts out as 1.
I don't think that's it.
Jeff Oien
> > while ($z <= "$Number_Children") {
> > >>error>if (${"element2$z"} == "select") {
>
> Looks to me like $z is never reaching $Number_Children.
>
> Jason
>
--
PHP General Mailin
> while ($z <= "$Number_Children") {
> >>error> if (${"element2$z"} == "select") {
Looks to me like $z is never reaching $Number_Children.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
9 matches
Mail list logo