How Can i pass js value to sql
<pre><code>function muIo($val){
    var val = $val;

    &lt;?php $result = mysql_query("UPDATE category SET category_active=1 WHERE category_id=" +  val + "");?&gt;

}
</code></pre>