title: Php login hide when logged in and hide logout when not logged in
body: <p>I want a code to hide login button when logged in and display "welcome,username" and the logout button and when not logged in to display the login button... 
  <a href="http://needforgaming.x10.mx/testefinal/home.html" rel="nofollow noreferrer">http://needforgaming.x10.mx/testefinal/home.html</a> This is my website you can see how it looks idk if it is where i put the code thaths wrong or the code</p>
  
  <pre><code>&lt;?php 
               session_start();
              if(isset($_SESSION['username'])){ ?&gt;
      &lt;p&gt;Ola; &lt;u&gt;&lt;?php echo $_SESSION['username']; ?&gt;&lt;/u&gt;, &lt;/p&gt;
      &lt;p&gt;&lt;a href="logout.php"&gt;Logout&lt;/a&gt;&lt;/p&gt;
  &lt;?php } else{ ?&gt;
      &lt;p&gt;&lt;a href="#login-box" class="login-window"&gt;Login&lt;/a&gt;&lt;/p&gt;
  &lt;?php } ?&gt;
  </code></pre>