Jump to content

Deleting a record based on the system date/time?


Solarpitch

Recommended Posts

Hey Guys ,

I have an application that involeves user's uploading an add to sell a product. The user gets to select whether they want the add to run online for..

1 day
3 days
5 days
1 week

Is there a way or some code that I can use that automically removes the add from the database, based on the system date and time?

So if user selects 1 day . . 24 hours from the time it was uploaded it will be automatically deleted or better still . .  deleted and stored in an admin table!

Cheers,
Gerard.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.