I'm new to PHP,

How to insert data into a table using foreign key!