Automatic message alert feature
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!
------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.
------Solution--------------------
Check the expiry time periodically, if it expires, it will show you the desired reminder message.
------Solution--------------------
If it is to boot into the system, directly to determine the time, if it is a real-time reminder, JS long connection rotation
------Solution--------------------
References:
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.
------Solution--------------------
For more information please google " PHP js message push "