Recently used Php+mysql wrote a record coupon information of local small program, want to add a coupon in the back of the pre-warning function, can realize every time after opening the program on the home page has prompted information can, please give me some ideas! Thank you, first!
Reply to discussion (solution)
You've made yourself very clear.
When the user each login, check whether there is a coupon, if any, to determine the coupon expiry time and the current system time difference, if less than or equal to a value, pop-up message prompt.
Check the expiry time periodically, if it expires, it will show you the desired reminder message.
If it is to boot into the system, directly to determine the time, if it is a real-time reminder, JS long connection rotation
You've made yourself very clear.
When the user each login, check whether there is a coupon, if any, to determine the coupon expiry time and the current system time difference, if less than or equal to a value, pop-up message prompt.
+1 is the idea.
For more information please google "PHP js message Push"