title: Update MySQL using AJAX and PHP
body: <p>I'll go slow, not for your sake..for mine. I'm real new at trying to to do this. What I'm trying to do is update live a MySQL DB from an HTML table. This is how each  is built.</p>
  
  <pre><code> echo ("&lt;td id=\"callsign:$row[recordID]\" contenteditable=\"true\" 
                  onClick=\"showEdit(this)\"
                  onBlur=\"saveToDatabase(this,'callsign',$row[recordID])\" 
                  style='text-transform:uppercase'&gt;
                  $row[callsign]&lt;/td&gt;");
  </code></pre>
  
  <p>This is how it renders.</p>
  
  <pre><code> &lt;td id="callsign:6" contenteditable="true" onclick="showEdit(this)" onblur="saveToDatabase(this,'callsign',6)" style="text-transform: uppercase; background-color: rgb(253, 253, 253); background-position: initial initial; background-repeat: initial initial;"&gt;
                  KA0SXY&lt;/td&gt;
  </code></pre>
  
  <p>Here is the function that gets called.</p>
  
  <pre><code> function saveToDatabase(editableObj,column,id) {
  
          $(editableObj).css("background","#FFF url(loaderIcon.gif) no-repeat right");
              $.ajax({
                  url: "saveedit.php",
                  type: "POST",
                  data:'column='+column+'&amp;editval='+editableObj.innerHTML+'&amp;id='+id,
                  success: function(data){
                      $(editableObj).css("background","#FDFDFD");
                  }  
              });
        }
  </code></pre>
  
  <p>And here is the PHP.</p>
  
  <pre><code> &lt;?php
  require_once "dbConnectDtls.php";
  
      $result = mysql_query("UPDATE NetLog set " . $_POST["column"] . " = '".$_POST["editval"]."' WHERE  recordID=".$_POST["id"]);
      echo $result;
  
   ?&gt;
  </code></pre>
  
  <p>When I tab from this cell to the next the only thing that gets executed is the .gif. The MySQL does not get updated, what am I doing wrong? </p>
  
  <p>Thanks in advance for not treating me like a dummy, but helping me learn.</p>
  
  <p>Followup to suggestions:</p>
  
  <p>I'm afraid I'm making no headway on this. Is anyone willing to actually write a working example that I can follow?</p>