WinBinder Manual/db escape string
From wiki.swiftlytilting.com
Escapes a string so it is ready to be used as a SQL query. Specifically, this function will double single quotes (') or prepend a backslash (\) to them.
[edit]
Syntax
string db_escape_string(string str)
NOTE: This is a SQL function. See Database support for more information.
[edit]
Arguments
- str is the string to be escaped.
[edit]
Result
The function returns the escaped string.
[edit]
Example
// Remove quotes from string
$item = db_escape_string("That's all");
$res = db_query($item);
[edit]
See also

