I
I
Iossarian2018-10-01 15:38:09
PHP
Iossarian, 2018-10-01 15:38:09

How to configure link management through query parameters?

There is an online auction project. On the main page, the output of active lots from the database is configured. For detailed information about each lot, there is a template where the foreach () method goes through all active lots. So here's the crux of the matter: you need to make sure that when you click on the name of any lot on the main page, a page with information about this particular lot opens. And to make this work it is necessary with the help of query parameters.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavlo Zhak, 2018-10-01
@StrangeDev

if I understand correctly, then:
on the main page, you write a link to the lot with a parameter on the lot page:
$id = $_GET['item'];

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question