How to limit the display time of website payment information

Source: Internet
Author: User
The problem is that some information can be released only after payment, for example, the one-dollar release shows 10 days. One person paid ten yuan. It can display 100 days. The system automatically deletes this information when the last day is reached. (Using php). Please help me. The problem is that some information can be released only after payment, for example, the one-dollar release shows 10 days. One person paid ten yuan. It can display 100 days. The system automatically deletes this information when the last day is reached. (Using php). Please help me.

Reply content:

The problem is that some information can be released only after payment, for example, the one-dollar release shows 10 days. One person paid ten yuan. It can display 100 days. The system automatically deletes this information when the last day is reached. (Using php). Please help me.

In fact, you do not need to automatically delete this information to determine whether it is displayed.
Add a timestamp field at the time of his release, and add another field as the money he paid. Each time information is extracted, add a judgment, current Time-whether the release time is less than RMB * 10. If the value is less than or equal to, this information is sent to the front end. If the value is greater than, this information is filtered out. Of course, you can delete it.

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.