phpDocumentor default
[ class tree: default ] [ index: default ] [ all elements ]

Procedural File: common.lib.php

Source Location: /lodel/scripts/pma/common.lib.php

Page Details
Filesource:  Source Code for this file
Functions
PMA_backquote  [line 26]

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


[ Top ]
PMA_mysqlDie  [line 112]

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: 


[ Top ]
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


[ Top ]
PMA_whichCrlf  [line 55]

string PMA_whichCrlf( )

Defines the <CR><LF> value depending on the user OS.


API Tags:
Return:  the <CR><LF> value to use
Access:  public


[ Top ]


Documentation generated on Thu, 24 Jul 2008 05:08:25 +0200 by phpDocumentor 1.4.0a2