dimanche 13 novembre 2016

How to recover data through a foreign key

I have 2 tables Users and Services, linked by an associative table called contract wich conatain id_User and id_Service as foreign keys. I want to recover those two foreign keys by clicking on a button wich create a new contract, not only the FK but also some values such as service name for id_Service, cuz table Contract take this attribut as his name too, and how to pass his value in the controller!!? plz any solutions??

Aucun commentaire:

Enregistrer un commentaire