Constructor
DB_MySQLi
__construct
(string $db, string $host, string $user, string $pass)
-
string
$db: name of weblog database
-
string
$host: host of weblog database
-
string
$user: username for weblog database
-
string
$pass: password for weblog database
Method to perform queries that change the database (INSERT, UPDATE, DELETE)
int
change
(string $sql, array $params)
-
string
$sql: SQL query with placeholders
-
array
$params: array with values for placeholders
Method to test if connection to database is established
bool
connected
()
Method to perform queries to SELECT from the database
array
fetch
(string $sql, [array $params = array()])
-
string
$sql: SQL query with placeholders if needed
-
array
$params: array with values for placeholders
Private method to prepare and execute a mysqli prepared statement
obj
_mysqli_stmt_prepare_execute
(string $sql, array $params)
-
string
$sql: SQL query with placeholders
-
array
$params: array with values for placeholders