Delete IP After Set Time
Posted: Wed Mar 21, 2012 6:34 pm
Hi everyone, I'm new here and fairly new to PHP. My question is, I have a vote system in WordPress that uses JavaScript to set a cookie that will disable the vote button for a specified period of time and I use PHP to send the voter's IP to a database. How can I set that IP to be deleted from the database after a specified period of time (10 seconds, 1 day, 1 week, or whatever) from the initial vote?
Thanks to anyone for any help!
Thanks to anyone for any help!