title: Welcome 'username' in a session
body: <p>I want to display Welcome Admin once the user logs in. I have the current code. What should I write to complete it? I have a mysql database with 'username' I need to replace the username variable.</p>
  
  <pre><code>&lt;?php
  
  if((isset($_SESSION['admin']))){
  echo "Welcome ......
  }
  else
  {
  ?&gt;
      &lt;p&gt;Welcome Guest&lt;/p&gt;
  &lt;?php
  }
  ?&gt;
  </code></pre>