This topic is locked

Combining and saving data from 2 tables

4/27/2007 10:10:48 AM
PHPRunner General questions
W
wrjost author

Hi, everybody,

I am having trouble saving data from two tables in one of them.
My project is a database for tournament registration. Among others, it contains two tables: tblTournament (with the fields "TournamentName" and "TournamentIndex") and tblTeam2Tournament.
On the AddPage of tblTeam2Tournament is a lookup table, where the user picks any value of "TournamentName" from tblTournament.
When the information of the AddPage is saved to tblTeam2Tournament, it saves everything but the "TournamentIndex" of that particular "TournamentName" from tblTournament.
How can I accomplish that?
Thank you in advance,

Wilfried
P.S.: The function "Before Recorded Added" only contains code for sending emails

Sergey Kornilov admin 4/30/2007

Wilfried,
you need to rephrase your question.
Are you talking about preventing a field from being updated or about saving data into two different tables?