title: X-editable not updating value in database
body: <p>I am using X-Editable plugin in my php application to update fields of my table and use POST file to update the database.</p>
  
  <p>Here is form code:</p>
  
  <pre><code>&lt;table id="restaurant" class="table table-bordered table-striped"&gt;
         &lt;tbody&gt;
         &lt;?php 
         echo '
              &lt;tr&gt;
                 &lt;td style="width:15%"&gt;Restaurant name&lt;/td&gt;
                 &lt;td style="width:50%"&gt;&lt;a href="#" id="name" data-type="text" data-pk="'. escape($arrValues[$i]-&gt;r_id) .'" data-name="name" data-placeholder="Required" data-original-title="Enter Restaurant Name" class="editable editable-click" style="display: inline;"&gt;'. escape($arrValues[$i]-&gt;name) .'&lt;/a&gt;&lt;/td&gt;
                 &lt;td style="width:35%"&gt;&lt;span class="text-muted"&gt;Enter restaurant name.&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;';
          ?&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  </code></pre>
  
  <p>Here is the X-editable JS I am using at the bottom of the page:</p>
  
  <pre><code>&lt;script&gt;
  jQuery(document).ready(function() {
  
  //initializes all global values and plugin essentials
      FormEditable.init(); 
  
  //below function is only initialized on one field for debug purposes
      $(function(){
          $('#name').editable({
              url: 'post.php'
          });
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Here is the contents of my Post.php file:</p>
  
  <pre><code>&lt;?php 
  require 'core/init.php';
  
      $pk = $_POST['pk']; //primary key aka ID
      $name = $_POST['name']; //name of the field
      $value = $_POST['value']; //value of the field
  
      if (!empty($value)){
          $result = mysql_query('update Restaurants set '.mysql_escape_string($name).'="'.mysql_escape_string($value).'" where r_id = "'.mysql_escape_string($pk).'"');
          print_r($_POST);
      } else {
          header('HTTP 400 Bad Request', true, 400);
          echo "This field is required!";
      }
  
  ?&gt;
  </code></pre>
  
  <p>When I update the field in the application the value gets changed in the DOM but the value is not updated in the database.
  This my first time using X-Editable plugin and I not very strong in JS AJAX calls. Could someone please let me know how I can debug this and figure out why my value is not being pushed to the database.</p>
  
  <p>Any help will be greatly appreciated.</p>