Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 415 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 415 Bytes

PDOWrapper

Simple PHP PDO wrapper to handle MySQL databases easily

How to use

Update config.php with you database info

Then use this simple code snippet as a guide

<?php
include_once 'config.php';
include_once 'Database.php';

$db = new Database($config);

$db->query("SELECT * FROM users WHERE username = :username");

$db->bind(":username", "admin");

$db->execute();

print_r($db->single());