Warning: Undefined variable $db in C:\xampp\htdocs\pucusana\notas.php on line 4

Fatal error: Uncaught Error: Call to a member function prepare() on null in C:\xampp\htdocs\pucusana\notas.php:4 Stack trace: #0 {main} thrown in C:\xampp\htdocs\pucusana\notas.php on line 4