Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Last active September 12, 2020 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BMU-Verlag/8778a1188c44f8c9c0415b6075d70c22 to your computer and use it in GitHub Desktop.
Save BMU-Verlag/8778a1188c44f8c9c0415b6075d70c22 to your computer and use it in GitHub Desktop.
try
{
$dbh = new PDO ("mysql:dbname=onlineshopDB; host=localhost", "user1", "abc");
$newcustomer->setCustomerNumber($dbh);
$dbh = null;
}
catch(PDOException $e)
{
print $e->getMessage();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment