<?php $user = 'Brain'; $pass = 'Bell'; $dsn = 'mysql:host=localhost;dbname=brainbell;charset=utf8'; $dbh = null; try { $dbh = new PDO ($dsn, $user, $password); } catch (PDOException $e) { echo 'Connection Failed: '.$e->getMessage(); exit; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter