Pls, i need help with generating random numbers that would grant access to students to log in to the website to check results or admission status. the codes are to be stored in a MYSQL database and PHP would have tpo reference the db before granting access to the student.
it would be cool too if the code could have stuff on log in rate and also grant a limited amount of acess to the student say 5 TIMES.
thanks, pls would it be possible for me to pass in a variable and have this PHP script genrate random codes from it. e.g “A67889” and the script then create a random code.
Pin numbers (in most cases) need to be unique. For your purpose, they definitely need to be unique. So if you are going to randomly generate Pins, you need to check the database to see if one exist already, before allowing someone to use the generated Pin.