tt-rss/include/db.php

45 lines
878 B
PHP
Raw Normal View History

2006-08-19 09:04:45 +02:00
<?php
function db_connect($host, $user, $pass, $db) {
2013-04-17 13:36:34 +02:00
return Db::get()->connect($host, $user, $pass, $db, 0);
}
function db_escape_string($link, $s, $strip_tags = true) {
2013-04-17 13:36:34 +02:00
return Db::get()->escape_string($s, $strip_tags);
}
function db_query($link, $query, $die_on_error = true) {
2013-04-17 13:36:34 +02:00
return Db::get()->query($query, $die_on_error);
}
function db_fetch_assoc($result) {
2013-04-17 13:36:34 +02:00
return Db::get()->fetch_assoc($result);
}
function db_num_rows($result) {
2013-04-17 13:36:34 +02:00
return Db::get()->num_rows($result);
}
function db_fetch_result($result, $row, $param) {
2013-04-17 13:36:34 +02:00
return Db::get()->fetch_result($result, $row, $param);
}
function db_close($link) {
2013-04-17 13:36:34 +02:00
return Db::get()->close();
}
2005-10-17 05:45:44 +02:00
2006-05-16 14:37:35 +02:00
function db_affected_rows($link, $result) {
2013-04-17 13:36:34 +02:00
return Db::get()->affected_rows($result);
2006-05-16 14:56:53 +02:00
}
function db_last_error($link) {
2013-04-17 13:36:34 +02:00
return Db::get()->last_error();
}
function db_quote($str){
2013-04-17 13:36:34 +02:00
return Db::get()->quote($str);
}
?>