Answer the question
In order to leave comments, you need to log in
How to make 1 template page containing different database queries?
I am making a construction site and I need to create many pages with text and corresponding queries to the database, for example:
mymetr.ru - new buildings
How, instead of creating N separate pages, create 1 template page that will contain text (which is taken from the database) and a request (which, somehow, will also be stored in the database or point to a request with a tag / key, which will then be executed on the page)?
What is the best way to organize this? Only eval() came to mind, which is highly discouraged. Mong base.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question