My question is the following: is it possible to automatically generate an html page by entering data into the database (ie, for example, I wrote a new article and added its contents to the database)

in the table column: // content // - text of the article // name // -name of the article // autor // -author // url // -address of this very page with the article :-)

correspondingly they are all filled with my new entries

(Suppose a page template already exists)

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants aleksandr barakin , cheops , Bald , Streletz , user207618 10 Oct '16 at 23:22 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • You yourself put the php tag, the actual php is designed to create html pages based on some data that can be easily taken from the database. So "Yes, it is possible" - Mike
  • And how can this be done, for example, what principle of work will be - Daniel
  • read value from db and print it using print - Mike
  • And how will the page be generated? - Daniel
  • all that php prints the web server gives to the client, and he gets it and this is for him html. if you need to write to the file, no one bothers to print to the file - Mike

1 answer 1

The simplest thing is to install OpenServer (or Denver, or some other similar set.).

It includes:

  1. apache - web server. Server emulation Creates local sites to be accessed from the browser .

  2. Mysql server - database management system. (Heidi is also attached there - a very convenient, but constantly hanging program with which you can create databases, tables in the mysql, do the initial filling)

  3. php

After installation, you need to create a website, database and start writing code in php.

Apache sends requests to php, there they understand and the database is changed, the data is output.