Verify the user's password during registration and login using php

how to verify the user’s password during registration and login using php.I have created 2 tables called register n login using mysql.can sum1 help me with dis.