Connection failed: SQLSTATE[HY000] [2006] MySQL server has gone away
Fatal error: Uncaught Error: Call to a member function prepare() on null in E:\Programs\xamp\htdocs\live\store\config\functions.php:3591
Stack trace:
#0 E:\Programs\xamp\htdocs\live\store\config\functions.php(35): fetchUserName('1597')
#1 E:\Programs\xamp\htdocs\live\store\user-page.php(18): require_once('E:\\Programs\\xam...')
#2 {main}
thrown in E:\Programs\xamp\htdocs\live\store\config\functions.php on line 3591