diff --git a/db_central_columns.php b/db_central_columns.php index 29b71832e8..493b8937ef 100644 --- a/db_central_columns.php +++ b/db_central_columns.php @@ -6,6 +6,8 @@ * * @package PhpMyAdmin */ +use PMA\libraries\URL; + /** * Gets some core libraries */ @@ -114,7 +116,7 @@ $response->addHTML($table_navigation_html); $columnAdd = PMA_getHTMLforAddCentralColumn($total_rows, $pos, $db); $response->addHTML($columnAdd); $deleteRowForm = '
', + '[/code]' => '
+ * $values = array( + * 'aaa' => aaa, + * 'bbb' => array( + * 'bbb_0', + * 'bbb_1', + * ), + * 'ccc' => array( + * 'a' => 'ccc_a', + * 'b' => 'ccc_b', + * ), + * ); + * echo URL::getHiddenFields($values); + * + * // produces: + * + * + * + * + * + *
+ * $params['myparam'] = 'myvalue'; + * $params['db'] = 'mysql'; + * $params['table'] = 'rights'; + * // note the missing ? + * echo 'script.php' . URL::getCommon($params); + * // produces with cookies enabled: + * // script.php?myparam=myvalue&db=mysql&table=rights + * // with cookies disabled: + * // script.php?server=1&lang=en&myparam=myvalue&db=mysql + * // &table=rights + * + * // note the missing ? + * echo 'script.php' . URL::getCommon(); + * // produces with cookies enabled: + * // script.php + * // with cookies disabled: + * // script.php?server=1&lang=en + *