1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Move escape functions to DB methods

git-svn-id: file:///svn/phpbb/trunk@3264 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2003-01-07 14:37:50 +00:00
parent 5048f1f2bc
commit d2e324fe0b
2 changed files with 20 additions and 0 deletions

View File

@@ -379,6 +379,16 @@ if (!empty($_REQUEST['explain']))
return ( $query_id ) ? @mysql_free_result($query_id) : false;
}
function sql_quote($msg)
{
return mysql_escape_string($msg);
}
function sql_escape($msg)
{
return mysql_escape_string($msg);
}
function sql_error($sql = '')
{
if ( !$this->return_on_error )