PHP Invoicing System
Hi there,
I am researching the best way to implement an invoicing system in PHP and MySQL. Preset items will be stored in a db table, and each invoice will be a row in the table as well. Now, I cannot decide the best way to store the items associated with each invoice. I cannot simply link it to the invoice table (ie have a separate table invoice_items that has invoice_id and item_id columns) because the items can come and go as well as change price. My first thought is to create an xml file with the data in it and save that in a BLOB field, as well as on file somewhere else for a backup. What do you think? Is this efficient?
Do you guys have any other ideas.. right now I have nothing planned as to the layout/setup of my invoicing system so its very flexible.
Thanks in advance,
FuZion
|