Hello to all,
Well got a slight problem that I am trying to solve, however; I have not run across anything via Google to address my problem. I have an app that let's say consist of the following:
student table with two fields---userID, Username.
Primary Key, UniqueKey userID
Next table,
Class table with four fields classID,userID_FK,Desc,Instructor.
The problem I am having is how to insert data into both tables at the same time. I can create the form and do inserts,updates,deletes. However, the problem is how do I auto-populate the class table with the userid in the userID_FK using PHP.
Any help is appreciated.