Skip to content

Instantly share code, notes, and snippets.

View ernesthenry's full-sized avatar

ernestkato ernesthenry

View GitHub Profile
@ernesthenry
ernesthenry / pdo_db.php
Created March 22, 2021 08:03 — forked from bradtraversy/pdo_db.php
PDO Class
<?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;