Skip to content

Instantly share code, notes, and snippets.

View funandyx's full-sized avatar
🎯
Focusing

Andrew Sai funandyx

🎯
Focusing
  • San Francisco/Tallinn
View GitHub Profile
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@funandyx
funandyx / pdocrash.php
Created April 10, 2018 13:24 — forked from bradtraversy/pdocrash.php
PDO & Prepared Statements Snippets
<?php
$host = 'localhost';
$user = 'root';
$password = '123456';
$dbname = 'pdoposts';
// Set DSN
$dsn = 'mysql:host='. $host .';dbname='. $dbname;
// Create a PDO instance