N
N
ngapp2020-03-04 23:42:46
css
ngapp, 2020-03-04 23:42:46

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).
5e60127586f14943207403.png
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

1 answer(s)
D
Daria Motorina, 2020-03-05
@hypnogaja

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 question

Ask a Question

731 491 924 answers to any question