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))"); ?> Quote Link to comment 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 . ""); Quote Link to comment Share on other sites More sharing options...
techiefreak05 Posted July 29, 2007 Author Share Posted July 29, 2007 thanks a lot. it worked. :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.