sunshine111 Posted June 10, 2011 Share Posted June 10, 2011 hello i came acroos through a database in that password was varchar(50) & its accepting till 20 characters is this wrong or this can happen i am confused Quote Link to comment https://forums.phpfreaks.com/topic/238940-database-value-grater-than-actual-table/ Share on other sites More sharing options...
The Little Guy Posted June 10, 2011 Share Posted June 10, 2011 just because it is set to a varchar(50) does not mean that it must have 50 characters, it can have anywhere from 0 - 50 characters. In my opinion, I feel that a password field should be a char and not a varchar because a password is usually a hash, and hash's are usually a set length; for example an md5 is always 32 characters. Quote Link to comment https://forums.phpfreaks.com/topic/238940-database-value-grater-than-actual-table/#findComment-1227924 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.