Re: var references

From: Date: Fri, 06 Feb 2004 18:59:56 +0000
Subject: Re: var references
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177037@lists.php.net to get a copy of this message
Thanks!, my syntax was a bit off, havn't had much sleep, but it kept slipping by me ;) Chris W. Parker wrote:
Arthur Pelkey <mailto:apelkey@northeastquality.com>
    on Friday, February 06, 2004 9:46 AM said:
$blat = $tue_5a;
[snip]
while($row = mysql_fetch_array($result)) { switch($blat) { case tue_5a: $min_1 = $row[29]; break; }
[snip]
Why can I not refence the row[29] from min_1? ive tried various ways and nothing shows up unless i actually put the assoc array value. Any ideas?
i think you forgot your $ in front of the tue_5a in 'case tue_5a'? otherwise the way you are using tue_5a the second time, appears to be a constant and not a string or a regular variable. hth, chris.


« previous php.general (#177037) next »