Re: Variables changes their values

From: Date: Tue, 03 Jun 2003 14:04:25 +0000
Subject: Re: Variables changes their values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-149964@lists.php.net to get a copy of this message
Thats the strange thing... there IS NO CODE that change the value... And the cut/paste is bad... there is no parse errors and the code snip is only a small part of a scriptfile. - Svein On Tuesday 03 June 2003 15:33, Jay Blanchard wrote: > [snip] > I'm not able to reproduce this in a short code-snippet. > But from the first echo to the last echo $lid change its value: > > if ($hostid==31) echo "lid1: $lid"; > > # Paragraphs > [/snip] > > $lid is getting set the first time before the IF statement. From this IF > to the last $lid in what you posted I couldn't find anything re-setting > $lid. So you must be doing it outside of the code block. What is the > initial value of the variable, and what does it change to? > > Jay

« previous php.general (#149964) next »