Procedural File: common.lib.php
Source Location: /lodel/scripts/pma/common.lib.php
Functions
mixed PMA_backquote(
mixed $a_name, [boolean $do_it = TRUE]
)
|
|
Adds backquotes on both sides of a database, table or field name.
Since MySQL 3.23.6 this allows to use non-alphanumeric characters in these names.
Parameters:
|
mixed |
$a_name: |
the database, table or field name to "backquote" or array of it |
|
boolean |
$do_it: |
a flag to bypass this function (used by dump functions) |
API Tags:
| Return: | the "backquoted" database, table or field name if the current MySQL release is >= 3.23.6, the original one else |
| Access: | public |
void PMA_mysqlDie(
[ $error_message = ''], [ $the_query = ''], [ $is_modify_link = TRUE], [ $back_url = ''], [ $exit = TRUE]
)
|
|
Parameters:
|
|
$error_message: |
|
|
|
$the_query: |
|
|
|
$is_modify_link: |
|
|
|
$back_url: |
|
|
|
$exit: |
|
PMA_sqlAddslashes [line 91]
string PMA_sqlAddslashes(
[string $a_string = ''], [boolean $is_like = FALSE], [boolean $crlf = FALSE]
)
|
|
Add slashes before "'" and "\" characters so a value containing them can be used in a sql comparison.
Parameters:
|
string |
$a_string: |
the string to slash |
|
boolean |
$is_like: |
whether the string will be used in a 'LIKE' clause (it then requires two more escaped sequences) or not |
|
boolean |
$crlf: |
whether to treat cr/lfs as escape-worthy entities (converts \n to \\n, \r to \\r) |
API Tags:
| Return: | the slashed string |
| Access: | public |
Defines the <CR><LF> value depending on the user OS.
API Tags:
| Return: | the <CR><LF> value to use |
| Access: | public |
|
|