PHP compare triggered from JQuery AJAX not returning value
<p>I am using <code>jQuery</code> to invoke a <code>PHP</code> script to update a <code>MYSQL</code> db, but first do a logical test based on the value. This issue I am finding it if I build my query this way, i got error <code>Query was empty</code>.</p>

<p>Logically I tried to resolve the test to no avail. Any help would be very appreciated.</p>

<pre><code>$type= trim($_POST['type']);
if( $type == "wanted" ) {
   $qUpdate = "UPDATE Post...
}
</code></pre>
