title: How to use jQuery variable inside php code?
body: <p>I have PHP code inside jQuery scriptm, and I want to pass a jQuery variable to PHP.</p>
  
  <p>This is my code :</p>
  
  <pre><code>$(document).ready(function() {
   $('.editclass').each(function() {
    $(this).click(function(){
      var Id = $(this).attr('id');
        &lt;?php 
              include "config.php";
              $query="SELECT * FROM users WHERE UserId=\'id\'";
  
        ?&gt;
   $("#user_name").val(Id);
     });
  });
  
  });
  </code></pre>
  
  <p>I want the value of id to be exist in php code (<code>$query</code>)</p>