I have a database of Users and another table for Teachers. Teachers have all the properties as a user, but also an email address. When pasting into a database, how can I insert information so that the identifier is the same for both?
the identifier is currently in automatic restriction.
this is what i have at the moment:
$sqlQuery="INSERT INTO user(firstName,lastName,DOB,title,password,classRoomID)
VALUES('$myFirstName','$myLastName','$myDOB','$myTitle','$newPassword','$myClassRoom')";
$result=mysql_query($sqlQuery);
$sqlQuery = "INSERT INTO teacher(email) VALUES ('$myEmail')";
$result=mysql_query($sqlQuery);
Thank you!
source
share