diff --git a/ChangeLog b/ChangeLog index 54bd99541..d0c7f25e1 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ $Source$ 2002-07-01 Marc Delisle * tbl_properties_links.php3, db_details_links.php3: better vertical spacing * tbl_properties.php3, db_details.php3: misplaced bullet + * tbl_properties.php3: add field list on the query page 2002-07-01 Alexander M. Turek * sql.php3: Fixed bug #575867 (Error with limit or load in the table name). diff --git a/tbl_properties.php3 b/tbl_properties.php3 index 7b7845d01..19657152f 100755 --- a/tbl_properties.php3 +++ b/tbl_properties.php3 @@ -30,6 +30,21 @@ if (isset($show_query) && $show_query == 'y') { } unset($sql_query); +/* + * Get the list and number of fields + */ +$local_query = 'SHOW FIELDS FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table); +$result = @PMA_mysql_query($local_query); +if (!$result) { + PMA_mysqlDie('', $local_query, '', $err_url); +} +else { + $fields_cnt = mysql_num_rows($result); + while ($row = PMA_mysql_fetch_array($result)) { + $fields_list[] = $row['Field']; + } // end while + mysql_free_result($result); +} /** * Work on the table @@ -63,7 +78,16 @@ require('./tbl_properties_table_info.php3'); -  :
+ +