update an example

This commit is contained in:
Marc Delisle
2002-06-26 15:10:34 +00:00
parent 1255fbfd57
commit ce0a13184b
2 changed files with 7 additions and 3 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-06-26 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html: update the persons/towns/countries example
2002-06-26 Olivier L. M<>ller <om@omnis.ch>
* tbl_change.php3: display the submit button every 15 lines:
may be useful for tables with 200 fields...

View File

@@ -1925,7 +1925,8 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
<p>
<b>How can I use the relation table in Query-by-example?</b>
<br />
Here is an example with the tables persons, towns and countries. If you
Here is an example with the tables persons, towns and countries, all
located in the database mydb. If you
don't have a PMA_relation table, create it as explained in the
configuration section. Then create the example tables:
<br /><br />
@@ -1958,8 +1959,8 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;INSERT INTO towns VALUES ('S', 'Sherbrooke');<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;INSERT INTO towns VALUES ('M', 'Montr<74>al');<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;INSERT INTO `PMA_relation` VALUES ('persons', 'town_code', 'towns', 'town_code', 1);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;INSERT INTO `PMA_relation` VALUES ('persons', 'country_code', 'countries', 'country_code', 1);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;INSERT INTO `PMA_relation` VALUES ('mydb','persons', 'town_code', 'mydb', 'towns', 'town_code');<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;INSERT INTO `PMA_relation` VALUES ('mydb, 'persons', 'country_code', 'mydb', 'countries', 'country_code');<br />
</tt>
<br />
Then test like this: