Skip to content

Instantly share code, notes, and snippets.

@galihazizif
Created May 16, 2017 08:14
Show Gist options
  • Save galihazizif/dfcfb6d8a542591842ed88a494003fb2 to your computer and use it in GitHub Desktop.
Save galihazizif/dfcfb6d8a542591842ed88a494003fb2 to your computer and use it in GitHub Desktop.
Mencoba PDO
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