RE: [PHP] var references
| From: | Chris W. Parker | Date: | Fri, 06 Feb 2004 18:43:23 +0000 |
| Subject: | RE: [PHP] var references | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-177036@lists.php.net to get a copy of this message | ||
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.