Re: [PHP] "Use of undefined constant" error

2002-12-17 Thread Tim Ward
message. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: fragmonster <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 10:49 AM Subject: [PHP] "Use of undefined constant" error > Hello, > I'

RE: [PHP] "Use of undefined constant" error

2002-12-17 Thread Jon Haworth
Hi, > "Notice: Use of undefined constant id - assumed 'id' in ..." Try changing this: > if(isset($_GET[id])){ to this: if(isset($_GET['id'])) { note quotes PHP thinks you're trying to use a constant called "id", which you haven't defined - hence the "unde

[PHP] "Use of undefined constant" error

2002-12-17 Thread fragmonster
Hello, I've got a strange pb. Here's my code if(isset($_GET[id])){ do something... else do something else } ?> When I call myfile.php or myfile.php?id=1 I've got an error message "Notice: Use of undefined constant id - assumed 'id' in ..." Please help -- PHP General Mailing List (htt

[PHP] "Use of undefined constant" error

2002-12-17 Thread fragmonster
Hello, I've got a strange pb. Here's my code if(isset($_GET[id])){ do something... else do something else } ?> When I call myfile.php I've got the "somthing else" with no error. When I call myfile.php?id=1 I've got the "something" but with an error message "Notice: Use of undefined constant i