Is it possible to put some sort of placeholder in html that I can then fill with a value once I get it from PHP?
For example if I want to change the title of an html page based on the first result of a Mysql query that happens only later in the page, how can I do it?
<html>
<head>
<title> </title>
</head>
<?php $title = mysql_query() ?>
--> how to update now the <title> element of the page?
It happens to me often that I get things I need to print in html only later in the page rendering from PHP, is there a way (JS?) to do something like this?