|
-
October 23rd, 2008, 03:43 PM
#1
PHP Notice: Undefined Index
Okay, I keep getting this error when someone accesses the file.
Code:
PHP Notice: Undefined index: Ex in C:\\Server\\172.16.1.35\\WhosOnline.php on line (2, 3, and 33)
I noticed that in every line, there is something like this.
PHP Code:
if ($_GET["Ex"] == "false") echo "</pre>";
Now, sometimes, there will not be a ?Ex=false, so I made it to this.
PHP Code:
if ($_GET["Ex"])
{
if ($_GET["Ex"] == "false") echo "</pre>";
}
I still get the error that the index is undefined, and this snippet is not working how I thought it would, so how do I check if it is undefined, so it will stop giving me that error.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|