I have a table file, this table will keet PDF files
file(id, name, mime, size, data, created)
and a table studentForm, only texts will be kept here
studentForm(firstName, name, emailAddress, fieldStudy, university, semester, linkedin, number)
My insert in PHP is inserting only into studentForm table:
$sql = "INSERT INTO studentForm (
firstName,
name,
emailAddress,
fieldStudy,
university,
semester,
linkedin,
number
)
VALUES (
'$firstName',
'$name',
'$emailAddress',
'$fieldStudy',
'$university',
'$semester',
'$linkedin',
'$number'
)";
I would like to insert data also into the file table. How can I do this JOIN table in a simple way?