Skip to content

Instantly share code, notes, and snippets.

View jalisa-islam's full-sized avatar
🎯
Focusing

Jalisa Islam jalisa-islam

🎯
Focusing
View GitHub Profile
@jalisa-islam
jalisa-islam / pdocrash.php
Created September 18, 2018 02:35 — 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