Hello community today I have a small problem that I have tried to solve but I do not get to the point, I read that this has nothing to do with the database but with the programming that I have in php and well, I have some tables relate example:
dficha- > idfy, idlib, idcarrera
mlibro- > idlibro, campo1, campo2
ccarrera- > idcarrera, campo1, campo2
The general table is the tab where the ids of the other two tables are stored, well and detailing more thoroughly I have a form in php where I have the fields of the book and the career, in this case I fill in the corresponding fields and the career field I have the default values career example: administration, engineering
So I have everything right, I send my form and the tables are filled, but here comes the problem that the id of the table mlibro is obvious autoincremental, but the id of the table dficha is not! and what I want is to send the id that was generated when entering in this case, a new record within the table mlibro I can do to send that id that was generated to the tab for your help Thanks!