Error in site title formation

0

I have a problem with a client site, it has several product pages and I created a page called mostra_produto.php , but the function that calls the title is returning with problem.

ERROR:

CODE:

<title>
     <?php echo($nomeproduto)?> .' - Vendas'); ?>
</title>
    
asked by anonymous 06.07.2017 / 21:56

2 answers

1

Try this:

<title>
     <?php echo $nomeproduto.' - Vendas'; ?>
</title>
    
06.07.2017 / 21:58
1

You are doing the concatenation badly, this tag closing php should appear later, at the end of the concatenation:

<?php echo $nomeproduto.' - Vendas'; ?>
    
06.07.2017 / 21:58