From d05984dde2a1a2538cc42a935faf4fea517af16a Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 26 Jun 2002 18:02:19 +0000 Subject: [PATCH] sub-pages links on browse --- ChangeLog | 1 + sql.php3 | 13 ++++++++----- tbl_properties_table_info.php3 | 10 +++++----- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index e8266adcd..4ab5d5e3f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ $Source$ 2002-06-26 Marc Delisle * Documentation.html: update the persons/towns/countries example + * sql.php3, tbl_properties_table_info.php3: sub-page links on browse 2002-06-26 Olivier L. Müller * tbl_change.php3: display the submit button every 15 lines: diff --git a/sql.php3 b/sql.php3 index d299c530e..f157673d1 100755 --- a/sql.php3 +++ b/sql.php3 @@ -1,14 +1,12 @@ = 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); /**