AW: [PHP-WIN] beginner: why does this not work
| From: | (Sven Schnitzke) | Date: | Wed, 07 May 2003 08:42:40 +0000 |
| Subject: | AW: [PHP-WIN] beginner: why does this not work | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-19794@lists.php.net to get a copy of this message | ||
> -----Ursprüngliche Nachricht-----
> Von: H Marc Bower [SMTP:hmbower@cogeco.ca]
> Gesendet am: Dienstag, 6. Mai 2003 21:55
> An: cablenews.casema.net; php-windows@lists.php.net
> Betreff: Re: [PHP-WIN] beginner: why does this not work
>
Marc,
> <snip>
> never needed to put the field names in quotes when fetching an array. So,
> instead of $rij["voornaam"], try $rij[voornam]. If that doesn't make any
> </snip>
Sorry to say so, but your advice regarding fieldnames in quotes
doesn't work but by PHPs autofixing a syntactical flaw in your code:
PHP issues a notice and assumes the value of an undefined constant
as being the text equal to the name of the constant, thus assuming e.g.
define (vornaam,"voornam").
Setting error_reporting to E_ALL will reveal this behavior.
Tristan,
would you mind describing your expectations missed by the outcome
of the submitted code ?
Regards
Sven