Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanaka Indrajith <pe.chanaka.ck@gmail.com>2012-09-16 13:05:45 +0400
committerChanaka Indrajith <pe.chanaka.ck@gmail.com>2012-09-16 13:05:45 +0400
commite6894be57f5735ab525a2f758ad842aacb8ef7bc (patch)
treea94e853e44998476b7a055380469c61d57037f80 /tbl_get_field.php
parent0829709064b8ec1170d63d6d9a5828a0a89b34af (diff)
Renamed ->method() with PMA_Util::method()
Diffstat (limited to 'tbl_get_field.php')
-rw-r--r--tbl_get_field.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tbl_get_field.php b/tbl_get_field.php
index b358b399e6..a537a82d41 100644
--- a/tbl_get_field.php
+++ b/tbl_get_field.php
@@ -13,13 +13,13 @@ require_once 'libraries/common.inc.php';
require_once 'libraries/mime.lib.php';
/* Check parameters */
-$common_functions->checkParameters(
+PMA_Util::checkParameters(
array('db', 'table', 'where_clause', 'transform_key')
);
/* Select database */
if (!PMA_DBI_select_db($db)) {
- $common_functions->mysqlDie(
+ PMA_Util::mysqlDie(
sprintf(__('\'%s\' database does not exist.'), htmlspecialchars($db)),
'', ''
);
@@ -27,18 +27,18 @@ if (!PMA_DBI_select_db($db)) {
/* Check if table exists */
if (!PMA_DBI_get_columns($db, $table)) {
- $common_functions->mysqlDie(__('Invalid table name'));
+ PMA_Util::mysqlDie(__('Invalid table name'));
}
/* Grab data */
-$sql = 'SELECT ' . $common_functions->backquote($transform_key)
- . ' FROM ' . $common_functions->backquote($table)
+$sql = 'SELECT ' . PMA_Util::backquote($transform_key)
+ . ' FROM ' . PMA_Util::backquote($table)
. ' WHERE ' . $where_clause . ';';
$result = PMA_DBI_fetch_value($sql);
/* Check return code */
if ($result === false) {
- $common_functions->mysqlDie(__('MySQL returned an empty result set (i.e. zero rows).'), $sql);
+ PMA_Util::mysqlDie(__('MySQL returned an empty result set (i.e. zero rows).'), $sql);
}
/* Avoid corrupting data */