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! 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 } 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
Archived
This topic is now archived and is closed to further replies.