How to handle PDO exceptions
I’m trying to work with PDO class on php but I have some trouble to find the right way to handle errors, I’ve wrote this code: <?php // $connection alreay created on a class which works with similar UPDATE statements // I've simply added here trim() and PDO::PARAM… data type $id = 33; $name = … Read more