I'm trying to create a login that will take the users email from the login textbox and find it in the login table of my database. The issue I have is that the login table has two different email types as foreign keys one is the custmer_email column and the second is the administrator_email column. What I wanted to do is write a code that will verify which column the users email comes from and based on that execute the function for either the administrator login or customer login.
↧