You are here

function DB_mysql::quoteIdentifier in Flickr API 5

Quotes a string so it can be safely used as a table or column name

MySQL can't handle the backtick character (<kbd>`</kbd>) in table or column names.

@since Method available since Release 1.6.0

Parameters

string $str identifier name to be quoted:

Return value

string quoted identifier string

Overrides DB_common::quoteIdentifier

See also

DB_common::quoteIdentifier()

File

phpFlickr/PEAR/DB/mysql.php, line 765

Class

DB_mysql
The methods PEAR DB uses to interact with PHP's mysql extension for interacting with MySQL databases

Code

function quoteIdentifier($str) {
  return '`' . $str . '`';
}