qqp question1: How do you create foreign keys on a table by using phpMyAdmin? question2: How do you create a foreign key to link two tables in SQL? I had some problems and it told me that it could not add foreign key constraints.