Skip to content

tigerhawkvok/DBHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DBHelper PHP class

https://github.com/tigerhawkvok/DBHelper

Configuration:

Short way

$db = new DBHelper(DATABASE,DATABASE_USER,DATABASE_USER_PASSWORD[,$url = "localhost",$table = null]);
# Highly reccommended
$db->setCols(array(col1,col2,...));

Long way

$db = new DBHelper();
$db->setSQLUser(DEFAULT_SQL_USER);
$db->setDB(DEFAULT_SQL_DATABASE);
$db->setSQLPW(DEFAULT_SQL_PASSWORD);
$db->setSQLURL(DEFAULT_SQL_URL); # Defaults to "localhost" if not set
$db->setTable(DEFAULT_DATABASE_TABLE);
# Highly reccommended
$db->setCols(array(col1,col2,...));

Usage

If you want to change the table being used, be sure to use the setTable method.

About

DB Helper functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages