Php automatically listens to a field value of a Mysql database table. when this value changes, the database update operation is triggered. how can this problem be solved?-php Tutorial

Source: Internet
Author: User
Php automatically listens to a certain field value of the Mysql database table. when this value changes, the database update operation is triggered. php automatically listens to a field value of the Mysql database table. when this value changes, the database update operation is triggered.. For example, if the user enters a wrong password to lock the user's account, it will be automatically unlocked three hours later ------ solution ------------------ that's easy 1. user input error 2. php updates database field block write current time User php automatically listens to a certain field value of Mysql database table when this value changes triggers database update operation
Php automatically listens to a field value in the Mysql database table. when this value changes, the database update operation is triggered. For example, if the user enters a wrong password to lock the user's account, it will be automatically unlocked three hours later.

------ Solution --------------------
That's easy
1. user input error
2. php updates the current time when the database field block is written.


The next time you log on, verify that the password is correct, and check whether the block is obtained. if the acquisition time is greater than 3 hours, the default block reset time is unblock.

Of course, you can also check whether the account is block.



Related Article

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.