title: How to Alert the returned data of ajax?
body: <p>I have a jQuery page with AJAX, and is submitted in a separate PHP file that has no UI. so what i want is if say for example an insert query in my PHP file will fail, an <code>echo(your insert failed)</code> in my PHP will be alerted in my jQuery page. how to do that?</p>
  
  <p>something like this <code>alert(data);</code></p>