You performed a query in an archive php, create an array and place the contents you want to display on the page, for example:
$data['titulo'] = "Aqui vai o título da página";
Place the contents you want, preferably the array is associative.
Then perform the following:
extract($data, EXTR_PREFIX_ALL, "view");
In which $data is your array, EXTR_PREFIX_ALL is a constant that says that all its variables will have prefixes, and "view" is the prefix that is a String of your choice.
In this case, within your code html, you should write like this:
<p><?php echo $view_titulo; ?></p>
Finally, in your code php, after the command extract you have to call a:
require_once "pagina.html";
That’s how it works with me.
This W3schools link can help: http://www.w3schools.com/php/func_array_extract.asp
What about another page? A popup for example or an open tab like _Blank?
– GilCarvalhoDev
Yeah, the result of my query fills a tag from a different page than the one I was on
– Júlio César