API17

API17:JDatabase::nameQuote

From Joomla! Documentation

Joomla 11.1 JDatabase::nameQuote

Description

Wrap an SQL statement identifier name such as field, table or database names in quotes to prevent injection risks and reserved word conflicts.


public function nameQuote ($name)
Parameter Type Default Description
$name string The identifier name to wrap in quotes.
  • Returns string The quote wrapped name.
  • Defined on line 877 of libraries/joomla/database/database.php
  • Since Joomla 11.1

See also


User contributed notes

Code Examples