/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php try { $pdo_options[PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION; $bdd = new PDO('mysql:host=localhost;dbname=test', 'root', '', $pdo_options); } catch (Exception $e) { } ?>