Warning: Undefined variable $db in /htdocs/match.php on line 40

Fatal error: Uncaught Error: Call to a member function prepare() on null in /htdocs/match.php:40 Stack trace: #0 {main} thrown in /htdocs/match.php on line 40