php - Check Log in, email is in a different table to password. How? -


i have user table has passwords, teacher stable has e-mail.

to log on need enter e-mail , password, have following, not working :/

$sqlquery="select s.password, t.email, s.id, t.id      user s, teacher t      t.email='$myemail' , s.password='$newpassword' , s.id = t.id"; $result=mysql_query($sqlquery);  //then checks row number etc, part works.  enter code here 

help appreciated!

try $sqlquery="select s.password, t.email, s.id, t.id user s, teacher t t.email='".$myemail."' , s.password='".$newpassword."' , s.id = t.id"; $result=mysql_query($sqlquery);


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -