= 40100 && !defined('PMA_MYSQL_CHARSETS_LIB_INCLUDED')) { include('./libraries/mysql_charsets.lib.php3'); } /** * Drop multiple fields if required */ // workaround for IE problem: if (isset($submit_mult_change_x)) { $submit_mult = $strChange; } if (isset($submit_mult_drop_x)) { $submit_mult = $strDrop; } if ((!empty($submit_mult) && isset($selected_fld)) || isset($mult_btn)) { $action = 'tbl_properties_structure.php3'; $err_url = 'tbl_properties_structure.php3?' . PMA_generate_common_url($db, $table); include('./mult_submits.inc.php3'); } /** * Runs common work */ require('./tbl_properties_common.php3'); $url_query .= '&goto=tbl_properties_structure.php3&back=tbl_properties_structure.php3'; /** * Prepares the table structure display */ // 1. Get table information/display tabs require('./tbl_properties_table_info.php3'); /** * Show result of multi submit operation */ if ((!empty($submit_mult) && isset($selected_fld)) || isset($mult_btn)) { PMA_showMessage($strSuccess); } // 2. Gets table keys and retains them $local_query = 'SHOW KEYS FROM ' . PMA_backquote($table); $result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0); $primary = ''; $ret_keys = array(); $pk_array = array(); // will be use to emphasis prim. keys in the table view while ($row = PMA_mysql_fetch_array($result)) { $ret_keys[] = $row; // Backups the list of primary keys if ($row['Key_name'] == 'PRIMARY') { $primary .= $row['Column_name'] . ', '; $pk_array[$row['Column_name']] = 1; } } // end while mysql_free_result($result); // 3. Get fields $local_query = 'SHOW FIELDS FROM ' . PMA_backquote($table); $fields_rs = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0); $fields_cnt = mysql_num_rows($fields_rs); /** * Displays the table structure ('show table' works correct since 3.23.03) */ ?>
20) { ?> 20) echo "\n\n"; /** * Displays indexes */ ?>