Notice: Undefined index: location in C:\xampp\htdocs\wait.php on line 56

Fatal error: Uncaught Error: Call to a member function fetchColumn() on boolean in C:\xampp\htdocs\wait.php:48 Stack trace: #0 C:\xampp\htdocs\wait.php(56): getData(NULL) #1 {main} thrown in C:\xampp\htdocs\wait.php on line 48