setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); echo "

Database connection successful!

"; echo "

If you're still having issues, talk to your system administrator, or file an issue with the package maintainer

"; } catch (PDOException $e) { echo "Connection failed: " . $e->getMessage(); } ?>