title: How to show hidden div in php
body: <p>I have <code>lecturer</code>div. I hidden this div. After that <code>if($user-&gt;hasPermission('admin'))</code> this function is true i want to show <code>lecturer</code> div.I will put stars<code>****</code> like this. I want show div for that place. </p>
  
  <pre><code>&lt;?php
  
  require_once 'core/init.php';
  
  $user = new User();
  
  if($user-&gt;isLoggedIn()) {
  
  ?&gt;
  &lt;li&gt;&lt;a href="logout.php"&gt;Log Out&lt;/a&gt;&lt;/li&gt;
  
   &lt;div class="lecturer" id="lecturer" style="display: none;"&gt;
    &lt;label for="studentID"&gt;Student ID&lt;/label&gt;
   &lt;/div&gt;
  
  &lt;?php
  
  if($user-&gt;hasPermission('admin')){
  echo '&lt;p&gt;You are the admin&lt;/p&gt;';
  ********I want to show lecturer dive here*************
  }
  
  }else {
  
  
  echo '&lt;p&gt;You need to &lt;a href="login.php"&gt;login&lt;/a&gt; or &lt;a href="register.php"&gt;register&lt;/a&gt;';
  
  }
  </code></pre>