I have two tables: Userlogindetails(username, pass) Userdetails(email, username*)
-Bolded are PK's, asterix is FK
I am trying to do a forgotpassword PHP page with an sql statement. The user will enter their email address and the sql statement will check that the email is correct in Userdetails. Then the username in Userdetails will get matched with Userlogindetails to find the password. Will I need two statements?
Thanks