sub-pages links on browse

This commit is contained in:
Marc Delisle
2002-06-26 18:02:19 +00:00
parent 6bb9a1eee8
commit d05984dde2
3 changed files with 14 additions and 10 deletions

View File

@@ -8,8 +8,8 @@
// The 'show table' statement works correct since 3.23.03
if (PMA_MYSQL_INT_VERSION >= 32303) {
$local_query = 'SHOW TABLE STATUS LIKE \'' . PMA_sqlAddslashes($table, TRUE) . '\'';
$result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0);
$showtable = PMA_mysql_fetch_array($result);
$table_info_result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0);
$showtable = PMA_mysql_fetch_array($table_info_result);
$tbl_type = strtoupper($showtable['Type']);
$num_rows = (isset($showtable['Rows']) ? $showtable['Rows'] : 0);
$show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : '');
@@ -27,12 +27,12 @@ if (PMA_MYSQL_INT_VERSION >= 32303) {
unset($tmp);
} else {
$local_query = 'SELECT COUNT(*) AS count FROM ' . PMA_backquote($table);
$result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0);
$table_info_result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0);
$showtable = array();
$num_rows = PMA_mysql_result($result, 0, 'count');
$num_rows = PMA_mysql_result($table_info_result, 0, 'count');
$show_comment = '';
}
mysql_free_result($result);
mysql_free_result($table_info_result);
/**