Okay, here's the scenario. The same user accesses the same form a second time in order to place a new order. Both the new order and the old order are stored in a MYSQL table (called "orders").
My thought is that, when the new order is placed, I need to provide code that will:
1) Check for the name, screen name, email, or some unique feature of the user.
2) Check for the date of the new order and compare it with the date of the old order.
3) I also need a way to commit an order.
4) I also need a way to edit an order before it is committed.
Can someone please provide me with PHP code/functions to complete steps 1-4?