2006-08-19 09:04:45 +02:00
|
|
|
<?php
|
2005-09-07 14:17:16 +02:00
|
|
|
|
2013-04-17 16:34:18 +02:00
|
|
|
function db_escape_string($s, $strip_tags = true) {
|
2013-04-17 13:36:34 +02:00
|
|
|
return Db::get()->escape_string($s, $strip_tags);
|
2005-09-07 14:17:16 +02:00
|
|
|
}
|
|
|
|
|
2013-04-17 16:34:18 +02:00
|
|
|
function db_query($query, $die_on_error = true) {
|
2013-04-17 13:36:34 +02:00
|
|
|
return Db::get()->query($query, $die_on_error);
|
2005-09-07 14:17:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function db_fetch_assoc($result) {
|
2013-04-17 13:36:34 +02:00
|
|
|
return Db::get()->fetch_assoc($result);
|
2005-09-07 14:17:16 +02:00
|
|
|
}
|
|
|
|
|
2013-03-15 16:54:18 +01:00
|
|
|
|
2005-09-07 14:17:16 +02:00
|
|
|
function db_num_rows($result) {
|
2013-04-17 13:36:34 +02:00
|
|
|
return Db::get()->num_rows($result);
|
2005-09-07 14:17:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function db_fetch_result($result, $row, $param) {
|
2013-04-17 13:36:34 +02:00
|
|
|
return Db::get()->fetch_result($result, $row, $param);
|
2005-10-16 16:48:33 +02:00
|
|
|
}
|
|
|
|
|
2013-04-17 16:34:18 +02:00
|
|
|
function db_affected_rows($result) {
|
2013-04-17 13:36:34 +02:00
|
|
|
return Db::get()->affected_rows($result);
|
2006-05-16 14:56:53 +02:00
|
|
|
}
|
2006-08-16 09:28:10 +02:00
|
|
|
|
2013-04-17 14:23:15 +02:00
|
|
|
function db_last_error() {
|
2013-04-17 13:36:34 +02:00
|
|
|
return Db::get()->last_error();
|
2006-08-16 09:28:10 +02:00
|
|
|
}
|
|
|
|
|
2016-04-26 19:04:24 +02:00
|
|
|
function db_last_query_error() {
|
|
|
|
return Db::get()->last_query_error();
|
|
|
|
}
|
|
|
|
|
2011-08-12 00:51:00 +02:00
|
|
|
function db_quote($str){
|
2013-04-17 13:36:34 +02:00
|
|
|
return Db::get()->quote($str);
|
2011-08-12 00:51:00 +02:00
|
|
|
}
|
|
|
|
|
2013-03-15 16:54:18 +01:00
|
|
|
?>
|