K
K
karetsky2016-02-14 00:44:09
PHP
karetsky, 2016-02-14 00:44:09

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

2 answer(s)
K
Kirill, 2016-02-14
@quant78

do printf output

S
Silm, 2016-02-14
@Silm

Eprst ... but what for?
Describe what you want to achieve, 120% that it's done differently...
And why monga? Is there a rationale?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question