PDO error: could not connect to DB, error: PDOException: SQLSTATE[HY000] [1045] Access denied for user 'ajaxtest'@'localhost' (using password: YES) in /var/www/html/example/recap-ajaxModals/database.php:12 Stack trace: #0 /var/www/html/example/recap-ajaxModals/database.php(12): PDO->__construct() #1 /var/www/html/example/recap-ajaxModals/functions.php(2): include('...') #2 /var/www/html/example/recap-ajaxModals/index.php(2): include('...') #3 {main}
Fatal error: Uncaught Error: Call to a member function prepare() on null in /var/www/html/example/recap-ajaxModals/functions.php:6 Stack trace: #0 /var/www/html/example/recap-ajaxModals/index.php(3): getCompanies() #1 {main} thrown in /var/www/html/example/recap-ajaxModals/functions.php on line 6