database escape method

For Joomla! 3.x Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
kmchen
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Sat Oct 21, 2006 12:57 am
Location: marseille (13) france
Contact:

database escape method

Postby kmchen » Mon Apr 09, 2018 4:55 pm

In the doc I see:
escape

Escapes a string for usage in an SQL statement.

escape(string $text, boolean $extra = false) : string

inherited abstract
since

11.1
Arguments
$text

stringThe string to be escaped.
$extra

booleanOptional parameter to provide extra escaping.
Response

string
The escaped string.


How can I know what type of escape is done and how $extra parmeter could be used ? :-[

SharkyKZ
Joomla! Guru
Joomla! Guru
Posts: 947
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: database escape method

Postby SharkyKZ » Mon Apr 09, 2018 6:02 pm



Return to “Joomla! 3.x Coding”

Who is online

Users browsing this forum: No registered users and 1 guest