Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

delete after 30 days in php

DELETE FROM archive
WHERE STR_TO_DATE(SUBSTR(created_date, 0, 25), '%a, %d %b %Y %H:%i:%S') <
      DATE_SUB(NOW(), INTERVAL 30 DAY);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #days #php
ADD COMMENT
Topic
Name
4+2 =