I have to make an if statement to place a form in my page if the user is an admin, but I'm having trouble with the syntax. Right now it is like this:
    if($_SESSION['tipo'] == "admin")
                {
                    echo '<form method=\'POST\' action=\'adicionaproduto.php\'>
                        <input type=\"submit\" value=\"Adicionar Produto\" name=\"adicionaproduto\">
                    </form>'
                }
It is not working and I think it's a mater of using "" or '. 
 
     
     
    