Skip to content

Instantly share code, notes, and snippets.

Avatar

ernestkato ernesthenry

View GitHub Profile
View pdo_db.php
<?php
/*
* PDO DATABASE CLASS
* Connects Database Using PDO
* Creates Prepeared Statements
* Binds params to values
* Returns rows and results
*/
class Database {
private $host = DB_HOST;