Added db_addslashes() function.

This commit is contained in:
mdean 2001-09-17 00:29:44 +00:00
parent d212773f1e
commit 8994de9d73
2 changed files with 16 additions and 0 deletions

View File

@ -125,6 +125,14 @@
} }
} }
function db_addslashes($str)
{
if (!IsSet($str) || $str == '')
return '';
return addslashes($str);
}
function to_timestamp($epoch) function to_timestamp($epoch)
{ {
return date('Y-m-d H:i:s',$epoch); return date('Y-m-d H:i:s',$epoch);

View File

@ -164,6 +164,14 @@
return @pg_close($this->Link_ID); return @pg_close($this->Link_ID);
} }
function db_addslashes($str)
{
if (!IsSet($str) || $str == '')
return '';
return addslashes($str);
}
/* I added the line and file section so we can have better error reporting. (jengo) */ /* I added the line and file section so we can have better error reporting. (jengo) */
function query($Query_String, $line = '', $file = '') function query($Query_String, $line = '', $file = '')
{ {