[SOLVED] One to Many data entry |
9/15/2010 14:40:32 | |
| PHPRunner General questions | ||
|
T
tparki authorDevClub member
I've been trying to work out how to implement a solution for the situation where I need to record a 100 or so predefined measurements for one master (boat) added. Each measurement has a spec, min value and max value which do not change for a new boat plus the actual measurement which is unique to the new boat. |
||
|
|
Sergey Kornilov admin 9/15/2010 |
|
Unless I'm missing something this looks like a simple master-details relationship between two tables. |
|
|
T
|
tparki authorDevClub member 9/16/2010 |
|
Unless I'm missing something this looks like a simple master-details relationship between two tables. Probably you need to elaborate what exactly causes the trouble.
|
|
|
|
Sergey Kornilov admin 9/16/2010 |
|
Sorry, still don't get what causes the trouble here. |
|
|
T
|
tparki authorDevClub member 9/16/2010 |
|
Sorry, still don't get what causes the trouble here. Add master record, add as many details as you need. Sounds pretty straightforward.
|
|
|
|
Sergey Kornilov admin 9/16/2010 |
|
So the question is how add 100 details records automatically after master record is created? for($i=1;$i<=100;++$i) |
|
|
T
|
tparki authorDevClub member 9/20/2010 |
|
Many thanks for your patience, Sergey <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=52818&image=1&table=forumreplies' class='bbc_emoticon' alt=':P' /> Tim |
|