Skip to content

Instantly share code, notes, and snippets.

@J2112O
Created October 3, 2020 20:47
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 J2112O/3b166c0f80f37e9a172619bd024dc31a to your computer and use it in GitHub Desktop.
Save J2112O/3b166c0f80f37e9a172619bd024dc31a to your computer and use it in GitHub Desktop.
// connection information
$pdo = new PDO('mysql:host=localhost;dbname=some_db_name;charset=utf8', 'some_user_name', 'some_password');
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment