]> git.wh0rd.org - tt-rss.git/blame_incremental - include/db.php
first stage of headline element handling refactoring
[tt-rss.git] / include / db.php
... / ...
CommitLineData
1<?php
2
3function db_escape_string($s, $strip_tags = true) {
4 return Db::get()->escape_string($s, $strip_tags);
5}
6
7function db_query($query, $die_on_error = true) {
8 return Db::get()->query($query, $die_on_error);
9}
10
11function db_fetch_assoc($result) {
12 return Db::get()->fetch_assoc($result);
13}
14
15
16function db_num_rows($result) {
17 return Db::get()->num_rows($result);
18}
19
20function db_fetch_result($result, $row, $param) {
21 return Db::get()->fetch_result($result, $row, $param);
22}
23
24function db_affected_rows($result) {
25 return Db::get()->affected_rows($result);
26}
27
28function db_last_error() {
29 return Db::get()->last_error();
30}
31
32function db_last_query_error() {
33 return Db::get()->last_query_error();
34}
35
36function db_quote($str){
37 return Db::get()->quote($str);
38}