Jump to content

Recommended Posts

Hello,

 

We had a guy build the company I work for a website, and he put in his own php shopping cart. Needless to say, it's a very bare bones cart - it functions, but looks like he worked on it for 24 hours straight and it's a bit messy.

 

One of the functions has a coupon code, and a delete script. You hit the delete button and it deletes coupon code with ID ##.

 

Problem is, we need to specify dates that coupons automatically turn on/off. I don't know how to do this. I know an if statement would work, but I would have to load the coupon code page that day - what if no one logs in that day?

 

Basically, I need it to execute on a certain day regardless whether or not anyone loads the page.

Link to comment
https://forums.phpfreaks.com/topic/170252-how-to-execute-php-on-certain-date/
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.