From 8825260ba9cfe0d8bd775e238e625cd41b06230d Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 22 Jan 2002 17:24:39 +0000 Subject: [PATCH] patch relation-links --- ChangeLog | 3 +++ Documentation.html | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/ChangeLog b/ChangeLog index d14fb3b32..7dc66e559 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,9 @@ $Source$ 2002-01-22 Marc Delisle * lang/german.inc.php3 updates thanks to Michael Hauptmann + * libraries/display_tbl.lib.php3, config.inc.php3, Documentation.html: + merged Patch #504887: Table relation-links, thanks to + Axel Sander (n8falke) 2002-01-20 Loïc Chapeaux * left.php3: diff --git a/Documentation.html b/Documentation.html index b5791a8e8..b488f0b95 100755 --- a/Documentation.html +++ b/Documentation.html @@ -545,6 +545,40 @@

+
+ $cfgServers[n]['relation'] string +
+
+ Since release 2.2.4 you can describe in a relation table which field + is a key in another table. phpMyAdmin currently uses this to make + clickable the data values that point to another table.

+ + Currently, the keys must be numeric, and you must be running PHP 4.

+ + To use this functionality you have to: +
    +
  • + create in the same database a table (for example 'relation') following this scheme:
    + +      CREATE TABLE `relation` (
    +        `src_table` varchar(32) NOT NULL default '',
    +        `src_column` varchar(32) NOT NULL default '',
    +        `dest_table` varchar(32) NOT NULL default '',
    +        `dest_column` varchar(32) NOT NULL default '',
    +        PRIMARY KEY (`src_table`,`src_column`)
    +         ) TYPE=MyISAM COMMENT='Table Relation';
    +
    +
  • +
  • + put the relation table name in + $cfgServers[n]['relation'] +
  • +
  • + then manually fill the relation table with information + about the keys. +
  • +

+
$cfgServerDefault integer
If you have more than one server configured, you can set