title: jQuery reloading PHP results not working
body: <p><strong>This is how I post a new comment:</strong></p>
  
  <pre><code>        if (guest.val() != '' &amp;&amp; comment.val() != '')
          {
              $.post("events.php?action=send", $("#form").serialize() , function(data) 
              {
                  $("#processing").html('');
  
                  if ($(data).html() == 'Hello fuckign world!') 
                  {
                      $("#comments").html(data);
                  } 
                  else 
                  {
                  $("#comments").html(data);
                  $("#guest_name").val('');
                  $("#text").val('');
                  submit.fadeIn("slow");                  
                  }
  
              });
          }
          else
          {
              $("#processing").html('');
              $(".error").fadeIn("slow");
              $(".error").html('Please fill up the fields!');
  
              $(".error").click(function() {
                  $(".error").fadeOut("slow");
              });
              submit.fadeIn("slow");
          }
      }); 
      loadComments(); 
  });
  
  function loadComments()
  {
      $.post("events.php?action=reload", { reload : 'true' } , function(callback) 
      {
          $(".comments").html('');
          $(".comments").html(callback);
      });
  }
  </code></pre>
  
  <p>Before that, of course I have document ready, and on click function.</p>
  
  <p>Now, at the end I put this:</p>
  
  <pre><code>    loadComments(); 
  </code></pre>
  
  <p>Which is:</p>
  
  <pre><code>function loadComments()
  {
      $.post("events.php?action=reload", { reload : 'true' } , function(callback) 
      {
          $(".comments").html(callback);
      });
  }
  </code></pre>
  
  <p>So after the jQuery finishes it's action, it will send a post again to load all results, and updatethe div that holds the data.</p>
  
  <p><em>But for some reason , after submiting, it doesn't reload the results. I have to do F5 to reload the results..</em></p>
  
  <p><strong>Question:</strong></p>
  
  <p>What have I done wrong? how do I fix it? How do I reload the results using jquery/ajax?</p>
  
  <p>That's how I fetch the results:</p>
  
  <pre><code>if (isset($_POST) &amp;&amp; isset($_GET['action']) &amp;&amp; $_GET['action'] == 'reload')
  {
      $select = $CONNECT_TO_DATABASE-&gt;query("SELECT * FROM comments LIMIT 10");
      while($row = $select-&gt;fetch( PDO::FETCH_ASSOC )) {
          echo
              '
              Name: '.$row['client_name'].'&lt;br /&gt;
              Message: '.$row['client_message'].' &lt;br /&gt;
              Likes: '.$row['client_likes'].' &lt;br /&gt; &lt;br /&gt; &lt;hr&gt;&lt;/hr&gt;
              ';
      }
  }
  </code></pre>