Skip to content

Instantly share code, notes, and snippets.

View Samielleuch's full-sized avatar
🏠
Working from home

Samielleuch

🏠
Working from home
  • Eyacom
  • Tunisia
View GitHub Profile
@Samielleuch
Samielleuch / pdocrash.php
Created March 27, 2019 06:25 — 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