I am building a system for college attendance. I want the password to match the last six digits of my student ID when logging in. How do I do this? Do you manually enter the data into the table? Is there any code to implement it? The great master will guide you on the recommended learning content. I am a student, but my knowledge is still shallow. Hope God can give me some advice
After getting the password from $_POST, make a judgment and compare it with the last six digits of the student ID to see if it is equal. The last six digits of the student number can be obtained using the substr function.
You can take a look at the substr function