PDO error: could not connect to DB, error: PDOException: SQLSTATE[HY000] [1045] Access denied for user 'wcss_pti1'@'localhost' (using password: YES) in /var/www/html/example/recap-sql/database.php:12
Stack trace:
#0 /var/www/html/example/recap-sql/database.php(12): PDO->__construct()
#1 /var/www/html/example/recap-sql/select-demo.php(2): include('...')
#2 {main}
Warning: Undefined variable $pdo in /var/www/html/example/recap-sql/select-demo.php on line 4
Fatal error: Uncaught Error: Call to a member function prepare() on null in /var/www/html/example/recap-sql/select-demo.php:4
Stack trace:
#0 {main}
thrown in /var/www/html/example/recap-sql/select-demo.php on line 4