Created
May 16, 2017 08:14
-
-
Save galihazizif/dfcfb6d8a542591842ed88a494003fb2 to your computer and use it in GitHub Desktop.
Mencoba PDO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try{ | |
$pdo = new PDO($dsn, $username, $password); | |
//dsn : string spesifik tergantung database yang digunakan | |
} | |
catch(PDOException $er){ | |
echo $er->getMessage(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment