David Carrdcblogdev.hashnode.devยทJul 27, 2013Connecting to a MySQL database with PDOThis video covers connection to a database using PDO in a try catch block with Exceptions. The Source Code <?php try { $db = new PDO('mysql:host=localhost;dbname=temp','root','root'); } catch (Exception $e) { echo $e->getMessage(); } ?>...Add a thoughtful commentNo comments yetBe the first to start the conversation.