 <p>One problem is that you have <strong>two AJAX calls</strong> - <code>get</code> and <code>load</code>. You don't need both.<br> Either use <a href="http://api.jquery.com/load/" rel="nofollow noreferrer"><code>load</code></a>:</p> <pre><code>$("#content").load('pagination3.php?&amp;category='+ this_id ); </code></pre> <p>or <a href="http://api.jquery.com/jQuery.get/" rel="nofollow noreferrer"><code>get</code></a>:</p> <pre><code>$.get("pagination3.php", { category: this_id }, function(data){ $("#content").html(data); }, "html" ); </code></pre> <p><sub>(A side note here is that two calls are not necessarily wrong - they might both work. Also, watch out for SQL injection - you are very close..)</sub></p>