How to Host Multiple Databases
Most accounts with ISPs are for a limited number of MySQL databases - usually
one.
This is not a limitation for PedigreePoint which allows for multiple breed
"databases" since
each one is stored as a table within the database. Note multiple databases are
only support
by PedigreePoint2 not PedigreePoint1.http://pedigreepoint.com/instructions/adding_extra_fields.htm
Follow these steps to create an make multiple breed databases available on your web site:
| (1) Create table for each breed database | To create a pedigree table use the following
script but instead of `second`, use a different name for your other breed
tables.
CREATE TABLE `second` ( The above script needs to be copied and pasted into your phpMyAdmin console windows as shown below: |
| (2) Create second source of data | In Pedigree Explorer, create another database
file (.BMX). When you export data using the Tools-Export PedigreePoint
command make sure that the "Table Name:" field is set to the
name of your newly created PedigreePoint table. In the previous step we
used "second" so that's what we show here:
The PedigreePoint export file created by this step can be uploaded as for other uploads which are described here. |
| (3) Modify Search Page | The file pp_search.htm nees to be modified to
offer your second database as a choice to the user. The search dialog
looks like the following:
The Database combo needs to be edited to offer your second database as an option. The best way to do this is to edit the raw HTML. The sample below shows what the HTML should look like for two choices. Note that for each option the value="database" is the name of the actual MySQL table which is normally but pedigree, but if you had multiple you would probably name them after the breed like nova for Nova Scotia Duck Tolling Retriever. The text between the <option> and </option> (start and end tags) is the text that is shown to the user for that option. Within the <option> tag inlcude the word selected to make that option the default.
|