I have form of uploading data to the database, but I need to delete data after 1 month. how does it possibe.
here is my query of insert data to the database:
Should I need to add fields for date upload?
$sql = "INSERT INTO sales_order (ProductType,WorkOrder,POIssueDate,SalesMonth)
ON DUPLICATE KEY UPDATE
ProductType = '$ProductType', WorkOrder = '$WorkOrder', POIssueDate = '$POIssueDate', SalesMonth = '$SalesMonth'" or die(mysql_error());