Skip to content
Snippets Groups Projects
Commit 45d80844 authored by Robert Anderson's avatar Robert Anderson
Browse files

Added db->quote function

parent 720fa685
No related branches found
No related tags found
No related merge requests found
...@@ -432,6 +432,18 @@ function DBCommit() ...@@ -432,6 +432,18 @@ function DBCommit()
} }
# Function to quote a variable
# Args: none
function DBQuote($var)
{
global $db;
$res = $db->quote($var);
return $res;
}
# Function to rollback a transaction # Function to rollback a transaction
# Args: none # Args: none
function DBRollback() function DBRollback()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment