Skip to content

Instantly share code, notes, and snippets.

View kazitanvirahsan's full-sized avatar

Kazi Tanvir Ahsan kazitanvirahsan

View GitHub Profile
@kazitanvirahsan
kazitanvirahsan / README-Template.md
Created December 14, 2017 10:35 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@kazitanvirahsan
kazitanvirahsan / class.database.php
Created November 21, 2016 11:24 — forked from jonashansen229/class.database.php
PHP OOP Database class using MySQLI and Singleton pattern. Only one instance of the class will be made, this requires less memory.
<?php
/*
* Mysql database class - only one connection alowed
*/
class Database {
private $_connection;
private static $_instance; //The single instance
private $_host = "HOSTt";
private $_username = "USERNAME";
private $_password = "PASSWORd";