API17

JDatabaseMySQL::getEscaped: Difference between revisions

From Joomla! Documentation

m →See also: moving preparation
m clean up
Line 4: Line 4:
Method to escape a string for usage in an SQL statement.  
Method to escape a string for usage in an SQL statement.  


{{Description:JDatabaseMySQL::getEscaped}}
{{subst:Description:JDatabaseMySQL::getEscaped}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JDatabaseMySQL::getEscaped|Edit Descripton]]<nowiki>]</nowiki>
</span>
<source lang="php">
<source lang="php">
public function getEscaped (
public function getEscaped (
Line 40: Line 38:
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
* [[API17:JDatabaseMySQL::getEscaped|Other versions of JDatabaseMySQL::getEscaped]]
* [[API17:JDatabaseMySQL::getEscaped|Other versions of JDatabaseMySQL::getEscaped]]
{{SeeAlso:JDatabaseMySQL::getEscaped}}
{{subst:SeeAlso:JDatabaseMySQL::getEscaped}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDatabaseMySQL::getEscaped|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
<CodeExamplesForm />

Revision as of 15:03, 24 March 2017

Joomla 11.1 JDatabaseMySQL::getEscaped

Description

Method to escape a string for usage in an SQL statement.

{{subst:Description:JDatabaseMySQL::getEscaped}}

public function getEscaped (
        $text
        $extra=false
)
Parameter Type Default Description
$text string The string to be escaped.
$extra bool false Optional parameter to provide extra escaping.
  • Returns string The escaped string.
  • Defined on line 206 of libraries/joomla/database/database/mysql.php
  • Since Joomla 11.1

See also

{{subst:SeeAlso:JDatabaseMySQL::getEscaped}}

User contributed notes

<CodeExamplesForm />