title: MySQL - How to insert into multiple tables with foreign keys
body: <p>I'am new to MySQL, so please be nice :)</p>
  
  <p>I would like to insert data from a php form into 3 different tables, which all have foreign keys. How can I write an insert command which updates all 3 tables at once, because if I try to update a table manually then I get an error because of the missing references.
  Do I have to deal with "NULL" entries and update every table after another or is it possible to solve this with one single command? Like MySQLi_Multi_Query?</p>
  
  <p>Thank you very much!</p>