techiefreak05 Posted July 29, 2007 Share Posted July 29, 2007 I have a query that's supposed to remove bulletin entries that are a week old and over, but its not working, and the "date" column is filled with "time();" <?php mysql_query("DELETE FROM `bulletins` WHERE `date` > (time() + (3600*24*7))"); ?> Link to comment https://forums.phpfreaks.com/topic/62352-solved-delete-entries-1-week-old-or-older/ Share on other sites More sharing options...
lightningstrike Posted July 29, 2007 Share Posted July 29, 2007 perhaps this... $value = time() - (3600*24*7); mysql_query("DELETE FROM `bulletins` WHERE `date` < " . $value . ""); Link to comment https://forums.phpfreaks.com/topic/62352-solved-delete-entries-1-week-old-or-older/#findComment-310291 Share on other sites More sharing options...
techiefreak05 Posted July 29, 2007 Author Share Posted July 29, 2007 thanks a lot. it worked. :-) Link to comment https://forums.phpfreaks.com/topic/62352-solved-delete-entries-1-week-old-or-older/#findComment-310297 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.