Skip to content

Instantly share code, notes, and snippets.

View waelalameen's full-sized avatar
🎯
Focusing

Wael Alameen waelalameen

🎯
Focusing
  • International Smart Card (QiCard)
  • Baghdad
  • 14:04 (UTC +03:00)
View GitHub Profile
@bradtraversy
bradtraversy / pdocrash.php
Last active November 11, 2025 12:29
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