Skip to content

Instantly share code, notes, and snippets.

View jmmaguigad's full-sized avatar
💻
Family & Web

JM Maguigad jmmaguigad

💻
Family & Web
View GitHub Profile
@jmmaguigad
jmmaguigad / flexcenter.css
Last active July 17, 2023 08:04
Flex Center Class
.flex-center {
display: flex;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
}
@jmmaguigad
jmmaguigad / dbase.php
Last active February 2, 2020 23:00
DB Query Builder Class
<?php
/*
* DB Query Builder Class
* References:
* Curtis Parham => https://www.youtube.com/playlist?list=PLFPkAJFH7I0keB1qpWk5qVVUYdNLTEUs3
* MySQL => http://g2pc1.bu.edu/~qzpeng/manual/MySQL%20Commands.htm
*/
class Dbase {
public static $_instance = null;
private $_pdo, $_query, $_error = false, $_result, $_count = 0, $_lastInsertId = null, $_host = "localhost", $_db_name = "dbname",