Skip to content

doushichao/DBUtil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

DBUtil

For MySQLi Database Framework

include_once "DB.php";

$db = new DB([
	'hostname' => 'localhost',
	'username' => 'root',
	'password' => 'youpassword',
	'database' => 'youdatabase'
	]);

$sql = "SELECT id, name FROM user WHERE id = ?";
$id = 2;
$row = $db->query($sql, array($id))->result_array();

print_r($row);

About

For MySQLi Database Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages