I am developing a business directory where advertisers are able to offer a coupon (for visitors to print off).
The coupon has a start date and an end date recorded as fields in the database. The coupon itself is held in another field as an image.
I am looking for a way to display the coupon image only if the current date is between the coupon start date and the coupon end date (i.e. it only appears during the period when the coupon is active).
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
stevep2
Hi
I am developing a business directory where advertisers are able to offer a coupon (for visitors to print off).
The coupon has a start date and an end date recorded as fields in the database. The coupon itself is held in another field as an image.
I am looking for a way to display the coupon image only if the current date is between the coupon start date and the coupon end date (i.e. it only appears during the period when the coupon is active).
CAn anyone provide any suggestions ?
Thanks
Steve
Link to comment
Share on other sites
1 answer to this question
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.
Note: Your post will require moderator approval before it will be visible.