Hopefully I can say this in a way that makes sense..
I am learning PDO, and I am wanting to, at the footer.php file, make some kind of code that checks for PDO errors in the page.
In other words, I am wanting to set the error mode to ERRMODE_SILENT and at the end of the page, get all the PDO errors without adding the try and catch to every single query.
I'm not sure if this is even possible and not sure exactly how to Google that.
Any thoughts or suggestions?