CodeIgniter Forums
Insert DataBase Master-Detail - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Insert DataBase Master-Detail (/thread-35274.html)



Insert DataBase Master-Detail - El Forum - 10-24-2010

[eluser]Unknown[/eluser]
=================================================================
INVOICE TYPE : INVOICE
SR(A) : CODEIGNITER

INVOICE DETAILS

CODE / DESCRIPTION QUANTITY P. UNIT P. TOTAL
RJ-045 - VIDEO IRON MAN 2 20.00 40.00
RJ-556 - VIDEO AVATAR 2 15.50 31.00

=================================================================

I have 2 tables, "invoice","detailInvoice":

INVOICE:
id_invoice
id_typeInvoice
id_client

DETAILINVOICE:
id_detailInvoice
id_invoice
quantity
price
date

Any ideas to enter the details to the database. I can enter the Master (TypeInvoice and CustomerID) the problem is with the detail.

Thanks!