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.