Search using dates and display the records/ total sales amount
What im wanting to achieve is this:
In my admin i want to build a feature where a user can search for orders between given dates and have them returned. I also want to be able to show the total amount in value of sales for this period as well.
Im using the MySQL timestamp in the database field to record the date and time of the order, and the following php to convert it to UK date/ time layout for the user to view... <?php echo date('d/m/Y,H:i:s',strtotime($row_Recordset1['OrderDate'])); ?>
The field for each order total is OrderAmount and this is what im wanting to count.
Any pointers will be greatly appreciated.