php JQuery ajax implementation
<p>i am trying to use the Jquery ajax function to call a php page to run a query and return xm the only problem is i dont know how to read the Jquery API page</p>

<pre><code>http://api.jquery.com/jQuery.ajax/
</code></pre>

<p>it gives this example </p>

<pre><code>$.ajax({ url: "test.html", context: document.body, success: function(){
    $(this).addClass("done");
  }});
</code></pre>

<p>is there a better example to call a php page to run a sql query and return a json i can encode</p>
