I have a login script in my site. After login in a user i wanna a user can change his password. So i added two input box and a submit button. newpassconfirmpass condition: if($newpass=$confirmpass){ what will be sql code for update his password. } Please any body help me. I am no expert in php and sql.