SHARE
TWEET

Untitled

kalimero82 Aug 11th, 2016 35,260 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. try {
  2.     $conn = new PDO('mysql:host=localhost;dbname=database', $user, $pass);
  3.     $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  4. } catch(PDOException $e){
  5.     echo "ERROR: " . $e->getMessage();
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top