Gossamer Forum
Home : Products : DBMan : Customization :

Adding data from 2nd DB in sub add_record

Quote Reply
Adding data from 2nd DB in sub add_record
I have 2 tables: users and colleges. The users DB contains typical user info in addition to 3 fields about the user's college: CollegeName, CollegeCity, CollegeState.

The colleges DB has 3 fields: CollegeName, CollegeCity, CollegeState.

As each entry with users is created, there is a drop-down select box where the new user indicates his college. This is created using the sub build_select_field_from_other_db. Once he indicates his college in the select box, I also want to import the CollegeCity and CollegeState fields automatically from the colleges DB. This way I can avoid mispellings and other problems.

How can I modify sub build_select_field_from_other_db and sub add_record to allow this import?
Quote Reply
Re: [johnww] Adding data from 2nd DB in sub add_record In reply to
See this thread...

http://www.gossamer-threads.com/...orum.cgi?post=162559

Read the whole thing (it's kinda long) but it discusses getting and importing data from another db. Perhaps you can adapt it to suit your needs.

Good Luck!