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

2002-12-17 Thread Tim Ward
you've got error reporting set pretty high to get that. The correct way to reference an array element in this case is $_GET["id"], if you do $_GET[id] you are telling PHP to look for a constant called id. If it doesn't find one then it assumes you meant "id" onstead of id and proceeds accordingly.

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