title: How to insert a value in a MySQL DB with a primary key of another table
body: <p>I have a Table quizz, with has an unique id.</p>
  
  <p>I have a table questions</p>
  
  <p>every question that i have should have the id of the quizz.</p>
  
  <p>So 1 quizz has 6 questions, and every question has the id of the quizz.</p>
  
  <p>So on insert of one question, the id of the parent quizz should be written to column quizz_id</p>
  
  <pre><code>quizz : id, name , type
  questions: question, answer1, answer2, answer3, answer4, ransw, ransw2, ransw3, ransw4, quizz_id
  </code></pre>