pdo connectivity code example Example: PDO connect <?php $db = new PDO('mysql:host=myhost;dbname=mydb', 'login', 'password');