Meta tags with php

How to populate meta tags using php? That is, I want to fill them out through the html form, enter them into the database, and when the page loads, so that they appear automatically from the database.

<meta name="description" content="" />
<meta name="keywords" content="" />

Answer 1, authority 100%

Well, what’s the problem, I don’t understand? Well, create a table in which, for example, will be stored:
1)url
2) the actual meta tags

Well, just pull on the value of $_SERVER['REQUEST_URI']

But something I suspect that the above will not be enough for you…