I'm just starting php & mysql, and i'd like to be able to compare the values of 2 fields:

ID | Login | Password
1 | user1 | pwd1
2 | user2 | pwd2

i want to be able to take the login & password values from a submitted form and loop through the records in a table then check to see if it match.
It's like a user authentication type of code.

If anyone can help me, i'd be grateful!

Thank you
Sang N.
http://www.vinasite.com [incomplete]