A question from myself,
I am dealing with having to delete dated time from my MySql table. The reason is, this particular table will contain consumer credit information that must be automatically deleted within 15 days (I prefer 8 days). Credit card companies are really sensitive about this.
I have tried:
"SELECT datediff(now(),'2007-24-18T00:00:00') from myTable"
and even tried to subtract the time() in unix-timestamp from the different of "today" and the database archived time. Even if I were to get this to work, how can I
"DELETE FROM myTable where timeField='more than eight days ago'" ?
I'm having a hard time getting this to work.
Thanks,
Tatj
Modify:
$nowtime=date('Y-m-d h:i:s'); does not work in the SELECT* FROM myTable where timeField='$nowtime' when I've used the NOW() function when inserting info into the table (even though both look identical).
Struggling