3 function db_escape_string($s, $strip_tags = true) {
4 return Db::get()->escape_string($s, $strip_tags);
7 function db_query($query, $die_on_error = true) {
8 return Db::get()->query($query, $die_on_error);
11 function db_fetch_assoc($result) {
12 return Db::get()->fetch_assoc($result);
16 function db_num_rows($result) {
17 return Db::get()->num_rows($result);
20 function db_fetch_result($result, $row, $param) {
21 return Db::get()->fetch_result($result, $row, $param);
24 function db_affected_rows($result) {
25 return Db::get()->affected_rows($result);
28 function db_last_error() {
29 return Db::get()->last_error();
32 function db_last_query_error() {
33 return Db::get()->last_query_error();
36 function db_quote($str){
37 return Db::get()->quote($str);