i have two admin
one admin name : dinesh password :dinesh
another admin :ramesh password :ramesh
the output is success if the admin name is ramesh and error if the admin name is dinesh could somebody explain me
Your logic to find the existence of user is wrong.You are iterating through all the records of admin table
& assigning it to same variable.Thats why only "ramesh" is getting logged in it to your system.User Where clause for
finding the user.Hope you understood.
Geesh, I was about to post a very helpful and detailed answer until I read this:
dineshiop kumar wrote:ANYBODY THERE TO HELP ME
Impatiently kicking a topic up after less than 10 minutes and shouting to the world, while the other half of the world is still asleep at the time you posted it, is really not the way to get respect from others.