Hiii friends,
I am using Java and MySql softwares to login into my web application which was developed in jsp and servlets . In login application to check if username is admin and password is Admin. when we enter admin as un and admin as pwd it's logging in .To eliminate this we have to use one keyword as "BINARY" keyword in query like
"SELECT UN,PWD FROM LOGIN WHERE UN=''"+UN+"' AND BINARY PWD='"+PWD+"';
that's it.
I am using Java and MySql softwares to login into my web application which was developed in jsp and servlets . In login application to check if username is admin and password is Admin. when we enter admin as un and admin as pwd it's logging in .To eliminate this we have to use one keyword as "BINARY" keyword in query like
"SELECT UN,PWD FROM LOGIN WHERE UN=''"+UN+"' AND BINARY PWD='"+PWD+"';
that's it.