JDatabaseDriverPdo::escape
Method to escape a string for usage in an SQL statement.
Oracle escaping reference: http://www.orafaq.com/wiki/SQL_FAQ#How_does_one_escape_special_characters_when_writing_SQL_queries.3F SQLite escaping notes: http://www.sqlite.org/faq.html#q14 Method body is as implemented by the Zend Framework Note: Using query objects with bound variables is preferable to the below.
Signature
public function escape(string
$text,
[boolean
$extra = false] )
Parameters
-
$text
- The string to be escaped.
-
$extra
- Unused optional parameter to provide extra escaping.
Returns
- string
- The escaped string.