
<iframe frameborder="0" height="315" src="//www.youtube.com/embed/zZtfsJJqVAU" width="560"></iframe>
This video covers connection to a database using PDO in a try catch block with Exceptions.
<?php
try {
$db = new PDO('mysql:host=localhost;dbname=temp','root','root');
} catch (Exception $e) {
echo $e->getMessage();
}
?>
Subscribe to my newsletter for the latest updates on my books and digital products.
Find posts, tutorials, and resources quickly.
Subscribe to my newsletter for the latest updates on my books and digital products.