API17

JDatabaseMySQL::getEscaped: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
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.  


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


<source lang="php">
<source lang="php">
Line 38: 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]]
{{subst:SeeAlso:JDatabaseMySQL::getEscaped}}
 


===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=*

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