asmith6 Posted March 20, 2011 Share Posted March 20, 2011 I've tried multiple mysql tutorials thus far and some of them, have codes like this: $Page = $_GET["BLAH"]; if(!$_GET["BLAH"]) , I get an error of "Notice: Undefined Index: BLAH" in the file location and line number. Does anybody know what undefined index means and how I can patch up the problem? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/231216-what-does-undefined-index-mean/ Share on other sites More sharing options...
trq Posted March 20, 2011 Share Posted March 20, 2011 Undefined index means exactly what it says. The index "BLAH" does not yet exist within the $_GET array. You need to check for it's existence before attempting to use it's value. if (isset($_GET['BLAH'])) { // safe to use } Quote Link to comment https://forums.phpfreaks.com/topic/231216-what-does-undefined-index-mean/#findComment-1190072 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.