Originally Posted by ikuvae22
You donít join user and student table. You can use two tables separately. So, open your databases create two new tables and use it separately.
What a nonsense answer, especially after I gave him a *correct* way to do what he seems to be after.
He wants a *SINGLE* login form, where the user enters name and password, and then he wants to search both tables for possible matches on name and password and log the person in automatically according to what table he/she is in. My code allows him to do that.