R
R
Roman Grinberg2021-01-18 17:15:12
PHP
Roman Grinberg, 2021-01-18 17:15:12

How to display the text from the database when clicking on the block?

There are several blocks on the page, one of which is empty. The rest have headers taken from the database. When you click on one of these blocks, a query should be made to the database and in the empty block the text that refers to the clicked block should be displayed. How can I do that? It would be nice with a code example.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Yakovlev, 2021-01-18
@GarfieldOfficial

On click request with Ajax.
I will not give the finished code - its full Internet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question