how to insert data for foreign keys in database in sql in phpmyadmin code example
Example: phpmyadmin add foreign key
ALTER TABLE table_name
ADD CONSTRAINT fk_foreign_key_name
FOREIGN KEY (foreign_key_name)
REFERENCES target_table(target_key_name);