Created
April 29, 2015 09:00
-
-
Save Aziz-Rahman/65849f75f817bab308af to your computer and use it in GitHub Desktop.
To delete automatic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$conn = // bla2... | |
// setting timer | |
$long_time = 2; // long time 2 days | |
// proccess delete | |
$query = mysqli_query( $conn, "DELETE FROM table_name WHERE DATEDIFF( CURDATE(), field_date ) > $long_time" ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment