Skip to content

Instantly share code, notes, and snippets.

View farih96's full-sized avatar
๐Ÿž
Looking for bugs

Farih Mohammed farih96

๐Ÿž
Looking for bugs
View GitHub Profile
@farih96
farih96 / pdocrash.php
Created June 7, 2019 15:22 — 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