title: PHP comments news only one news
body: <p>Please link me any tutorial or simply inform me how to do so that it showed comments only on news which had recently been added. How I select only one?</p>
  
  <pre><code>&lt;?php
                  echo "&lt;form action='".setComments($conn)."' method='post'&gt;
                      &lt;input type='hidden' name='username'&gt;&lt;br&gt;
                      &lt;input type='hidden' name='date' value='".date('Y-m-d H:i:s')."'&gt;&lt;br&gt;
                      &lt;label&gt;Comment:&lt;br&gt; &lt;textarea cols='50' rows='6' name='message' &gt;&lt;/textarea&gt;&lt;/label&gt;&lt;br&gt;
                      &lt;button type='submit' name='commentSubmit' class='btn btn-default'&gt;Comment&lt;/button&gt;
                      &lt;/form&gt;";
                  getComments($conn);
                  ?&gt;
  
                     &lt;div class="comment_div"&gt;
                      &lt;?php
                      $query = "SELECT * FROM comment order by date desc";
                      mysqli_query($conn,$query) or die("Error queryng db");
                      $result = mysqli_query($conn,$query);
                      while ($row = mysqli_fetch_array($result)){
                          $name = $row['name'];
                          $com = $row['comment'];
                          $date = $row['date'];
                          echo "
                              &lt;div class='commentinfo'&gt;
                              &lt;p class='username'&gt;სახელი: $name ; თარიღი: $date&lt;/p&gt;
                              &lt;p class='comment'&gt;კომენტარი: &lt;br&gt; $com&lt;/p&gt;
                              &lt;/div&gt;
                              ";
                      }
                      ?&gt;
  </code></pre>
  
  <p>in comments.php :</p>
  
  <pre><code>&lt;?php
  function setComments($conn) {
      if (isset($_POST['commentSubmit'])) {
          $uid = $_POST['username'];
          $date = $_POST['date'];
          $message = $_POST['message'];
  
          $sql = "INSERT INTO comments (username,date,message) VALUES ('$uid','$date', '$message')";
          $result = mysqli_query($conn,$sql);
      }
  }
  
  function getComments ($conn) {
      $sql = "SELECT * FROM comments";
      $result = mysqli_query($conn,$sql);
      while ($row = mysqli_fetch_array($result)) {
          echo $row['username']."&lt;br&gt;";
          echo $row['date']."&lt;br&gt;";
          echo $row['message']."&lt;br&gt;&lt;br&gt;";
      };
      echo "
          &lt;form method='post' action'editcomment.php'&gt;
              &lt;input type='hidden' name='id' value='".$row['id']."'&gt;
              &lt;input type='hidden' name='username' value='".$row['username']."'&gt;
              &lt;input type='hidden' name='date' value='".$row['date']."'&gt;
              &lt;input type='hidden' name='message' value='".$row['message']."'&gt;
              &lt;button&gt;შესწორება&lt;/button&gt;
      ";
  
  }
  </code></pre>
  
  <p>I want to show only news posted comment an I have to all news comments other news.</p>