Skip to content

Instantly share code, notes, and snippets.

View wael65's full-sized avatar

Wael Abdlmeged wael65

View GitHub Profile
@wael65
wael65 / pdocrash.php
Created January 26, 2023 20:14 — 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