mysql_escape
host callCapy
function mysql_escape(raw : string) string function mysql_escape(raw : string, quote : string) string
Description
mysql_escape(raw) escapes raw and wraps it in single quotes.
Use the second form to set the wrapper. Pass an empty string when no wrapper is needed. Prefer named parameters with mysql_query().
Parameters
raw : the string to escape
quote : the string that wraps the result
Return Values
the escaped string
Example
Capy
print(mysql_escape("O'Brien", "'"), "\n")