title: PHP Show/hide link
body: <p>I have a function that prints out articles from my database and three links Edit , Add , Show/hide.
  In the show/hide link i want to be able to hide/show that particular article.
  How can i do that? 
  EDIT: I need to be able to hide/show articles in my backend page and it needs to stay hidden in the frontend page</p>
  
  <pre><code>function displaynews()
  {
      $data = mysql_query("SELECT * FROM news")  // query
      or die(mysql_error());   
      while ($info = mysql_fetch_array($data)) 
      {
          $id = $info['id']; 
          echo "&lt;br&gt;
                &lt;a href=Edit.php?id=$id&gt;Edit&lt;/a&gt;&lt;/a&gt;
                &lt;a href='addnews.php'&gt; Add &lt;/a&gt;
                &lt;a href='#'&gt;Show/Hide&lt;/a&gt;&lt;br&gt;&lt;strong&gt;" .
                $info['date'] .
                "&lt;/strong&gt;&lt;br&gt;" . 
                $info['news_content'] . 
                "&lt;hr&gt;&lt;br&gt;"; // Print Articles and Date
      }
  }
  </code></pre>