Answer the question
In order to leave comments, you need to log in
How to implement foreign key transition in php?
Hello everyone, there is a Molds table with id, name, date... attributes on mysql and there is a details table (id, moldsid, name).
How to implement so that when you click on the molds number, it goes to details?
in Russian (the form includes details. When you click on the form, it should go to the page with the details for this form).
Thanks
Answer the question
In order to leave comments, you need to log in
The answer is to generate a page with a prepared link to the details page.
You can simply generate a form with a link like <a href="/details?moldsid=123">детали</а>
. On the current page, you need to pull the id from molds in php, and on the details page, you already have all the details by moldsid from the details table
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question