Notice: Undefined variable: sql in /workspace/blog/includes/config.php on line 77

SQLSTATE[HY000] [1045] Access denied for user 'y8np2vfklmvytbhj'@'107.178.232.240' (using password: YES)
Notice: Undefined variable: db in /workspace/blog/viewpost.php on line 12

Fatal error: Uncaught Error: Call to a member function prepare() on null in /workspace/blog/viewpost.php:12 Stack trace: #0 /workspace/index.php(245): require() #1 {main} thrown in /workspace/blog/viewpost.php on line 12