API17

JDatabaseMySQL::getEscaped: Difference between revisions

From Joomla! Documentation

m JoomlaWikiBot moved page JDatabaseMySQL::getEscaped/11.1 to API17:JDatabaseMySQL::getEscaped without leaving a redirect: Robot: Moved page
m preparing for archive only
 
(3 intermediate revisions by the same user not shown)
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}}
 
<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 37: Line 35:
===See also===
===See also===
* {{JVer|11.1}} '''JDatabaseMySQL::getEscaped source code''' on [[jplatform:database/database/mysql.php#cl-198|BitBucket]]
* {{JVer|11.1}} '''JDatabaseMySQL::getEscaped source code''' on [[jplatform:database/database/mysql.php#cl-198|BitBucket]]
* {{JVer|11.1}} Class [[JDatabaseMySQL/11.1|JDatabaseMySQL]]
* {{JVer|11.1}} Class [[API17:JDatabaseMySQL|JDatabaseMySQL]]
* {{JVer|11.1}} Subpackage [[Subpackage_Database/11.1|Database]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
* [[JDatabaseMySQL::getEscaped|Other versions of JDatabaseMySQL::getEscaped]]
* [[API17:JDatabaseMySQL::getEscaped|Other versions of JDatabaseMySQL::getEscaped]]
{{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 />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JDatabaseMySQL::getEscaped
category=JDatabaseMySQL::getEscaped
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*
Line 55: Line 51:
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JDatabaseMySQL]][[Category:JDatabaseMySQL::getEscaped]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 02:38, 25 March 2017

Joomla 11.1 JDatabaseMySQL::getEscaped

Description

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


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


User contributed notes

Code Examples