hi
I have developed an authentiaction app for a website that uses a 5 digit code as the login. This is stored in MySQL as an integer(5) unsigned zerofill.
Some of these codes start with a humble 0.
Now, when someone whose code starts with a 0 logs in, they are not required to use the laeding zero(s). I would like to enforce that if their access code is 01234 then they MUST use 01234 to login, not be able to login with 1234 as they currently can do...
It seems to me that there is no mechanism in PHP to retain a zerofill in an integer. Am i correct, or am i blindly missing something...and if I am correct, does anyone have any suggestions for how I could make this system work the way I need it to?
thanks in advance