Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. Well, I'm making an application that has a competition of
  2. football. It is the creation of a new league to let him
  3. associate some equipment (eg 20), which is read from a table
  4. teams prepared for this purpose.
  5.  
  6. Once you create the league table automatically created in the
  7. "Match" (20 records) to keep the data of each team
  8. in this league, such as goals, points etc ...
  9.  
  10. Turn into another table of "Encounters" is also automatically created
  11. many records as events generated in the league (this is
  12. calculated using a formula and leave the games of the season) these
  13. records will be empty, only generate the record with
  14. associated identifier (will be filled when you enter
  15. outcome of the meeting).
  16.  
  17. Well this way either through triggers in the database (from
  18. the results of matches and goals to the points table
  19. classification) the application is maintained.
  20.  
  21. After explaining a little above the problem I'm going to
  22. specific problem.
  23.  
  24. Take league form data and also lead the league
  25. embedded (that is the way it happened to me, among others
  26. discarded) a dynamic form in which according to the number of
  27. equipment that we want we will be adding or deleting records to the
  28. League table, as we mentioned at the beginning.
  29.  
  30. This I have tried embebiddos forms and have not succeeded,
  31. I also tried double teams and select lists
  32. you want but do not, another option that probe is of a select
  33. multiple.
  34.  
  35. Note that the classification table has an id, and a team
  36. (Among other fields) where "team" is a foreign key to table
  37. equipment, discussed above. (This seems to me a bit complicated
  38. but the operation).
  39.  
  40. If someone would kindly help me I would send more code
  41. specifically to see how the situation in time for you
  42. I hope to see as they serve.
  43.  
  44. Regards and sorry for the chapisima that you just get! jajajaj
  45. thanks in advance.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement