Skip to content

articks/DbSimple-modified

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DbSimple-modified

DbSimple with mysqli support

if(version_compare(phpversion(),"5.3.0",">=")) {
    require_once PATH_TO_DBSIMPLE."/Mysqli.php";
}
else {
    require_once PATH_TO_DBSIMPLE."/Mysql.php";
}
$db = DbSimple_Generic::connect("mysql://USER:PASSWORD@HOST/BASE");
$db->query("SET character_set_client = 'utf8', character_set_connection = 'utf8',character_set_results = 'utf8'");
$db->query("SET SESSION group_concat_max_len = 32768");
$db->query("SET SESSION sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))");
$db->query("SET SQL_SAFE_UPDATES = 0");

About

DbSimple with mysqli support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages