]> git.wh0rd.org Git - tt-rss.git/blob - include/db.php
Fix allow duplicate posts feature with optimizations from 1.14
[tt-rss.git] / include / db.php
1 <?php
2
3 function db_escape_string($s, $strip_tags = true) {
4         return Db::get()->escape_string($s, $strip_tags);
5 }
6
7 function db_query($query, $die_on_error = true) {
8         return Db::get()->query($query, $die_on_error);
9 }
10
11 function db_fetch_assoc($result) {
12         return Db::get()->fetch_assoc($result);
13 }
14
15
16 function db_num_rows($result) {
17         return Db::get()->num_rows($result);
18 }
19
20 function db_fetch_result($result, $row, $param) {
21         return Db::get()->fetch_result($result, $row, $param);
22 }
23
24 function db_affected_rows($result) {
25         return Db::get()->affected_rows($result);
26 }
27
28 function db_last_error() {
29         return Db::get()->last_error();
30 }
31
32 function db_quote($str){
33         return Db::get()->quote($str);
34 }
35
36 ?>