Re: [PHP] Baffled, line producing error

2002-06-01 Thread Craig Vincent
> Notice the ' inside the '', this is bad syntax. For more > information on using strings in PHP, see: Sheesh you're right, as I said it was probably a dumb error, three other people have looked at this that I'm aware of and missed it toolol glad your eyes are better than ours. Thank you fo

Re: [PHP] Baffled, line producing error

2002-06-01 Thread Philip Olson
You have: if ($player_password != $player_password_verify) { $errmsg .= 'Password don't match. Please try again'; $error = 1; } Notice the ' inside the '', this is bad syntax. For more information on using strings in PHP, see: http://www.zend.com/zend/tut/using-strings.php http://

Re: [PHP] Baffled, line producing error

2002-06-01 Thread Craig Vincent
> 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 be

RE: [PHP] Baffled, line producing error

2002-06-01 Thread John Holmes
y, June 01, 2002 11:29 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Baffled, line producing error > > I was happily coding when I came across a mysterious error. I've traced > it > to this line > > if ($player_password != $player_password_verify) { $errmsg .= 'Password

RE: [PHP] Baffled, line producing error

2002-06-01 Thread Jonathan Rosenberg
What is the exact error message are you seeing? > -Original Message- > From: Craig Vincent [mailto:[EMAIL PROTECTED]] > Sent: Saturday, June 01, 2002 11:29 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Baffled, line producing error > > > I was happily cod

[PHP] Baffled, line producing error

2002-06-01 Thread Craig Vincent
I was happily coding when I came across a mysterious error. I've traced it to this line if ($player_password != $player_password_verify) { $errmsg .= 'Password don't match. Please try again'; $error = 1; } commented out the script runs fine, if this line is active an error is produced. My eye