Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Well, I'm making an application that has a competition of
- football. It is the creation of a new league to let him
- associate some equipment (eg 20), which is read from a table
- teams prepared for this purpose.
- Once you create the league table automatically created in the
- "Match" (20 records) to keep the data of each team
- in this league, such as goals, points etc ...
- Turn into another table of "Encounters" is also automatically created
- many records as events generated in the league (this is
- calculated using a formula and leave the games of the season) these
- records will be empty, only generate the record with
- associated identifier (will be filled when you enter
- outcome of the meeting).
- Well this way either through triggers in the database (from
- the results of matches and goals to the points table
- classification) the application is maintained.
- After explaining a little above the problem I'm going to
- specific problem.
- Take league form data and also lead the league
- embedded (that is the way it happened to me, among others
- discarded) a dynamic form in which according to the number of
- equipment that we want we will be adding or deleting records to the
- League table, as we mentioned at the beginning.
- This I have tried embebiddos forms and have not succeeded,
- I also tried double teams and select lists
- you want but do not, another option that probe is of a select
- multiple.
- Note that the classification table has an id, and a team
- (Among other fields) where "team" is a foreign key to table
- equipment, discussed above. (This seems to me a bit complicated
- but the operation).
- If someone would kindly help me I would send more code
- specifically to see how the situation in time for you
- I hope to see as they serve.
- Regards and sorry for the chapisima that you just get! jajajaj
- thanks in advance.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement