I'm trying to connect to my sqldatabase using pdo. I've used
PDO::getAvailableDrivers();
which returns mysql in the webpage.
I use:
$db = new PDO('mysql:host=127.0.0.1;dbname=name', 'root', '');
to connect to my phpmyadmin. I am using Apache2 and Debian.
Please be aware that the dbname = name is the wrong databasename, I'm expecting an error where it says "Cannot find the specific database" but instead the page returns blank.
I've put in a wrong database name as a troubleshooting step, as the real one was not showing up either.
Am I missing something?