I recently missed the PDO syntax and it took me a few hours to figure out what the error was. No error has been reported on the page. It was not for codamental catch.
How can I show error in these cases?
I used
new PDO ("mysql:localhost; dbname=crud", "root", "");
When the correct one was
new PDO ("mysql:host=localhost; dbname=crud", "root", "");
Yes I have
ini_set ('error_reporting', E_ALL);
ini_set ('display_errors', 1);
activated and the condition
try {} catch (PDOException $ e) {}
and even then no error is displayed.