Re: [PHP] Undefined constant error

2002-09-29 Thread Sascha Cunz
> make sure you have register_globals on in php.ini or your next question > will be 'why isn't $compteur set to the value posted?' Better would be to > change the line to the new magic globals, and learn the right way from > scratch: I agree with you as far, as to learn the right way from scratc

Re: [PHP] Undefined constant error

2002-09-29 Thread Matt
> From: "Voisine" <[EMAIL PROTECTED]> > Sent: Sunday, September 29, 2002 7:52 PM > Subject: [PHP] Undefined constant error > I'm learning PHP from a book "PHP for newbie writen in French" and I > have an error on one of the exemple. Undifined constant 'compteur' on > line 15 which is : > if (co

Re: [PHP] Undefined constant error

2002-09-29 Thread Sascha Cunz
There seems to be a print-error in this book. It's missing a '$' This line: > if (compteur == 1) { should be: > if ($compteur == 1) { Sascha Am Montag, 30. September 2002 01:52 schrieb Voisine: > Hello, > > I'm learning PHP from a book "PHP for newbie writen in French" and I > have an