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?
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 easier to unlock the account three hours later. user input error 2. php updates database field block write current time user next login-& g php automatically listens to a certain field value of Mysql database table when this value changes trigger 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.
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.