Enrol on the course at https://www.webinaction.co.uk/p/mysql... to download the Working Files.
We have successfully connected to our MySQL database using PDO. Then we deliberately introduced errors into the connection parameters and found that informative messages are returned to the browser as to where the problem lies. This is useful at the development stage as it tells us what is wrong, but in production we want to hide this sensitive information and return a friendly custom message which simply says something is wrong without giving exact infomration about the problem.
We do this using try … catch.
On this page of the site you can watch the video online MySQL PDO Tutorial Lesson 2 - Error catching with a duration of hours minute second in good quality, which was uploaded by the user Richard Stibbard Web Development Tutorials 15 August 2014, share the link with friends and acquaintances, this video has already been watched 23,590 times on youtube and it was liked by 180 viewers. Enjoy your viewing!