= 3.23.03 - staybyte - 11 June 2001 else if (PMA_MYSQL_INT_VERSION >= 32303) { // Get additional information about tables for tooltip if ($cfg['ShowTooltip']) { $tooltip_truename = array(); $tooltip_aliasname = array(); $result = PMA_mysql_query('SHOW TABLE STATUS FROM ' . PMA_backquote($db)); while ($tmp = PMA_mysql_fetch_array($result)) { $tooltip_truename[$tmp['Name']] = ($cfg['ShowTooltipAliasTB'] ? (!empty($tmp['Comment']) ? $tmp['Comment'] . ' ' : $tmp['Name']) : $tmp['Name']); $tooltip_aliasname[$tmp['Name']] = ($cfg['ShowTooltipAliasTB'] ? $tmp['Name'] : (!empty($tmp['Comment']) ? $tmp['Comment'] . ' ' : '')); if (isset($tmp['Create_time']) && !empty($tmp['Create_time'])) { $tooltip_aliasname[$tmp['Name']] .= ', ' . $strStatCreateTime . ': ' . PMA_localisedDate(strtotime($tmp['Create_time'])); } if (isset($tmp['Update_time']) && !empty($tmp['Update_time'])) { $tooltip_aliasname[$tmp['Name']] .= ', ' . $strStatUpdateTime . ': ' . PMA_localisedDate(strtotime($tmp['Update_time'])); } if (isset($tmp['Check_time']) && !empty($tmp['Check_time'])) { $tooltip_aliasname[$tmp['Name']] .= ', ' . $strStatCheckTime . ': ' . PMA_localisedDate(strtotime($tmp['Check_time'])); } } // end while } // end if if ($cfgRelation['commwork']) { $comment = PMA_getComments($db); /** * Displays table comment */ if (is_array($comment)) { ?>

' . $strSize . ''; } echo "\n"; ?> to get valid // statistics whatever is the table type if (isset($sts_data['Rows'])) { // MyISAM, ISAM or Heap table: Row count, data size and index size // is accurate. if (isset($sts_data['Type']) && ereg('^(MyISAM|ISAM|HEAP)$', $sts_data['Type'])) { if ($cfg['ShowStats']) { $tblsize = doubleval($sts_data['Data_length']) + doubleval($sts_data['Index_length']); $sum_size += $tblsize; list($formated_size, $unit) = PMA_formatByteDown($tblsize, 3, ($tblsize > 0) ? 1 : 0); } $sum_entries += $sts_data['Rows']; $display_rows = number_format($sts_data['Rows'], 0, $number_decimal_separator, $number_thousands_separator); } // InnoDB table: Row count is not accurate but data and index // sizes are. else if (isset($sts_data['Type']) && $sts_data['Type'] == 'InnoDB') { if ($cfg['ShowStats']) { $tblsize = $sts_data['Data_length'] + $sts_data['Index_length']; $sum_size += $tblsize; list($formated_size, $unit) = PMA_formatByteDown($tblsize, 3, ($tblsize > 0) ? 1 : 0); } //$display_rows = ' - '; // get row count with another method if ($sts_data['Rows'] < $cfg['MaxExactCount']) { $local_query = 'SELECT COUNT(*) AS count FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table); $table_info_result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0); $row_count = PMA_mysql_result($table_info_result, 0, 'count'); $sum_entries += $row_count; } else { $row_count = 0; $sum_entries += $sts_data['Rows']; } $display_rows = number_format($row_count, 0, $number_decimal_separator, $number_thousands_separator); } // Merge or BerkleyDB table: Only row count is accurate. else if (isset($sts_data['Type']) && ereg('^(MRG_MyISAM|BerkeleyDB)$', $sts_data['Type'])) { if ($cfg['ShowStats']) { $formated_size = ' - '; $unit = ''; } $sum_entries += $sts_data['Rows']; $display_rows = number_format($sts_data['Rows'], 0, $number_decimal_separator, $number_thousands_separator); } // Unknown table type. else { if ($cfg['ShowStats']) { $formated_size = 'unknown'; $unit = ''; } $display_rows = 'unknown'; } ?>
  
/>     ' . $strBrowse . ''; } else { echo $strBrowse; } ?> ' . $strSelect . ''; } else { echo $strSelect; } ?> = 40000) { echo urlencode('TRUNCATE ' . PMA_backquote($table)) . '&zero_rows=' . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table))) . '" onclick="return confirmLink(this, \'TRUNCATE '; } else { echo urlencode('DELETE FROM ' . PMA_backquote($table)) . '&zero_rows=' . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table))) . '" onclick="return confirmLink(this, \'DELETE FROM '; } echo PMA_jsFormat($table) . '\')">' . $strEmpty . ''; } else { echo $strEmpty; } ?>      
   --  
<?php echo $strWithChecked; ?>  /     
= 3.23.03 // 3. Shows tables list mysql < 3.23.03 else { if ($cfgRelation['commwork']) { $comment = PMA_getComments($db); /** * Displays table comment */ if (is_array($comment)) { ?>

  
/>   
<?php echo $strWithChecked; ?>  /