Re: Baffled, line producing error

From: Date: Sun, 02 Jun 2002 04:42:10 +0000
Subject: Re: Baffled, line producing error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100285@lists.php.net to get a copy of this message
> If the "error" is a warning about undefined variable, then set a default > value for $errmsg before you start adding strings to it. > > $errmsg .= "this"; > > That by itself means $errmsg = $errmsg . "this";, but if $errmsg isnt' > defined, you'll get the warning. > > Set $errmsg = ''; at the beginning of your script if that is the > problem... > > For future reference, always give the exact error when posting. > > Trying to be psychic, You'll notice a few lines up I have defined $errmsg =) It's a standard parsing error I'm getting Parse error: parse error in admin_add_player.php on line 15 Since this message does not arise when line 15 is removed I can only assume the error is actually on that line and not a missing quote or bracket somewhere else in the script. Sincerely, Craig Vincent

« previous php.general (#100285) next »