Automatic message reminder efficiency

Source: Internet
Author: User
The automatic message reminder function recently used PHP + MYSQL to write a local applet that records the Coupon Information. I want to add a reminder feature in advance when the coupon expires, after each program is opened, you can receive a prompt on the homepage. please give me some ideas! Thank you! ------ Solution ------------------ you have already understood it. Each time a user logs on, the system checks whether a coupon exists. If yes, it determines the difference between the coupon expiration time and the current system time. the automatic message reminder function
Recently, I used PHP + MYSQL to write a local applet that records the Coupon Information. I want to add a reminder for the coupon expiration, after each program is opened, you can receive a prompt on the homepage. please give me some ideas! Thank you!
------ Solution --------------------
You have already understood it.
When a user logs on to the system each time, check whether there is a coupon. If yes, determine the difference between the coupon expiration time and the current system time. if it is less than or equal to a value, a message is displayed.
------ Solution --------------------
Check the expiration time on a regular basis. if the expiration time is reached, the desired reminder message will be displayed ~
------ Solution --------------------
If it is boot into the system, directly judge the time, if it is a real-time reminder, js persistent connection training
------ Solution --------------------
Reference:
You have already understood it.
When a user logs on to the system each time, check whether there is a coupon. If yes, determine the difference between the coupon expiration time and the current system time. if it is less than or equal to a value, a message is displayed.
+ 1 is the idea.
------ Solution --------------------
For details, please google "php js message push"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.