You should write a script that generates an invoice from the order table, not have a seperate invoice table.
What I would recommend is having a customer table, with their name/address,etc and then have an order table with customer id, payment method, delivery method, etc and finally an order items table which has the items that make up the order.
Then you can select the items by
SELECT * FROM orderitems WHERE OrderID=$orderid
or similiar, where $orderid would be the primary key in your orders table.