title: Show button only if the person is admin otherwise disable the button
body: <p>I have the login page now.When we login as a user or admin it redirects to the home page.
  My question is when the person log in as a an admin i need to display all the button in home page and when the person log in as a user i need to disable the buttons.How can i do????Please help me:
  Below is the code:</p>
  
  <pre><code>$username = $_POST['username'];
  $password = $_POST['password'];
  $sql = "select * from tbl_login where username = '$username' and password = '$password' ";
  $result=mysql_query($sql);
  $count=mysql_num_rows($result);
  
  if($count==1){
  
  $_session["username"] = "username";
  $_session["password"] = "password";
  //$_SESSION['status'] = $var_value;
  
  $info = mysql_fetch_array($result);
  if($info['status'] == 1)
  {
      header("location:home.php");
  
  }
  elseif($info['status'] == 0)
      header("location:home.php");
  
  }
  
  else {
  
  echo "Wrong Username or Password";
  
  }
  ?&gt;
  </code></pre>
  
  <p>The home page where buttons are included are:</p>
  
  <pre><code>&lt;form name="frm" method="post" action="" &gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;input  name="delete" type="submit" id="delete" value="Delete"  &gt;
  
      &lt;td&gt; &lt;a href="insert.php?id=&lt;?php echo $rows['id']?&gt;"&gt;&lt;/a&gt;&lt;input  name="edit" type="submit" id="edit" value="edit"  &gt;&lt;/td&gt;
  
      &lt;td&gt;&lt;a href="insert.php?id=''" &gt;&lt;input type="button" value="Insert" /&gt;&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/form&gt;
  </code></pre>