create foreign key phpmyadmin
snippet in php

create foreign key phpmyadmin

user1625

ALTER TABLE table_name
ADD CONSTRAINT fk_foreign_key_name
FOREIGN KEY (foreign_key_name)
REFERENCES target_table(target_key_name);

foreign key in phpmyadmin

user4247

Foreign key in phpmyadmin