Difference between revisions of "JDatabaseMySQLi/getEscaped"
From Joomla! Documentation
< API15:JDatabaseMySQLi
(New page: ===Description===
Get a database escaped string
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]...) |
m (removing red link to edit, no existant pages) |
||
Line 3: | Line 3: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
− | <nowiki>[< | + | <nowiki>[<! removed edit link to red link >]</nowiki> |
</span> | </span> | ||
− | + | <! removed transcluded page call, red link never existed > | |
===Syntax=== | ===Syntax=== | ||
Line 47: | Line 47: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
− | <nowiki>[< | + | <nowiki>[<! removed edit link to red link >]</nowiki> |
</span> | </span> | ||
− | + | <! removed transcluded page call, red link never existed > | |
===Examples=== | ===Examples=== | ||
Line 62: | Line 62: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
+ | [[Category:Archived pages API15]] |
Revision as of 09:00, 12 May 2013
The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Get a database escaped string
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax[edit]
getEscaped($text, $extra=false)
Parameter Name | Default Value | Description |
---|---|---|
$text | The string to be escaped | |
$extra | false | Optional parameter to provide extra escaping |
Returns[edit]
string public
Defined in[edit]
libraries/joomla/database/database/mysqli.php
Importing[edit]
jimport( 'joomla.database.database.mysqli' );
Source Body[edit]
function getEscaped( $text, $extra = false )
{
$result = mysqli_real_escape_string( $this->_resource, $text );
if ($extra) {
$result = addcslashes( $result, '%_' );
}
return $result;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples[edit]
<CodeExamplesForm />