Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php mysql remove by timestamp older than a month

DELETE FROM on_search 
WHERE search_date < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 180 DAY))
 
PREVIOUS NEXT
Tagged: #php #mysql #remove #timestamp #older #month
ADD COMMENT
Topic
Name
9+5 =