For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > March 2007 > master/detail form with FormBuilder









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author master/detail form with FormBuilder
Gian Luca Ziosi

2007-03-27, 7:03 pm

Hi to all.
I use PEAR and FormBuilder from little time.
You could indicate to me how to creating a form/subform with FormBuilder
for editing a record and a group of record of one linked table?

Sample tables:
+----------+ +-----------------+
| orders | | order_details |
+----------+ 1 +-----------------+
| order_id |<--+ | detail_id |
| customer | | | product_code |
| ... | | N | ... |
+----------+ +--<| order_id |
+-----------------+

Sample form:
+------------------------------------+
| FORM TITLE |
+------------------------------------+
| |
| Order ID: ____ |
| Customer: _______________________ |
| ........: _______ |
| |
| Order details: |
| +--+----------+-------------+----+ |
| |ID| Code | Description |Q.ty| |
| +--+----------+-------------+----+ |
| | 1| xyz | qwe | 6| |
| | 2| abc | rty | 12| |
| |__| ________ | ___________ | ___| |
| +--+----------+-------------+----+ |
+------------------------------------+

Sorry for English.
Thanks.

PS: where I can post in Italian?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com