patch relation-links
This commit is contained in:
@@ -7,6 +7,9 @@ $Source$
|
||||
|
||||
2002-01-22 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* 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<4C>c Chapeaux <lolo@phpheaven.net>
|
||||
* left.php3:
|
||||
|
@@ -545,6 +545,40 @@
|
||||
<br /><br />
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
<b>$cfgServers[n]['relation']</b> string
|
||||
</dt>
|
||||
<dd>
|
||||
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.<br /><br />
|
||||
|
||||
Currently, the keys must be numeric, and you must be running PHP 4.<br /><br />
|
||||
|
||||
To use this functionality you have to:
|
||||
<ul>
|
||||
<li>
|
||||
create in the same database a table (for example 'relation') following this scheme:<br />
|
||||
<tt>
|
||||
CREATE TABLE `relation` (<br />
|
||||
`src_table` varchar(32) NOT NULL default '',<br />
|
||||
`src_column` varchar(32) NOT NULL default '',<br />
|
||||
`dest_table` varchar(32) NOT NULL default '',<br />
|
||||
`dest_column` varchar(32) NOT NULL default '',<br />
|
||||
PRIMARY KEY (`src_table`,`src_column`)<br />
|
||||
) TYPE=MyISAM COMMENT='Table Relation';<br />
|
||||
</tt>
|
||||
</li>
|
||||
<li>
|
||||
put the relation table name in
|
||||
<tt>$cfgServers[n]['relation']</tt>
|
||||
</li>
|
||||
<li>
|
||||
then manually fill the relation table with information
|
||||
about the keys.
|
||||
</li>
|
||||
</ul><br />
|
||||
|
||||
<dt><b>$cfgServerDefault</b> integer</dt>
|
||||
<dd>
|
||||
If you have more than one server configured, you can set
|
||||
|
Reference in New Issue
Block a user