title: dataTable: passing extra data to php server-side script
body: <p>I need to change the "where-clause" in the sql statement that is used to fetch data from a db and display it in dataTables by changing the value of myInput and passing it on to the server-side. I have this code:</p>
  
  <pre><code>&lt;input id=myInput value="london"&gt;
  
  &lt;script&gt;
  $(document).ready(function(){
  $('#example').dataTable({
      "processing": true,
      "serverSide": true,
      "ajax": {
          "url": "server_processing.php",
          "data": function ( d ) {
              d.myInput = $('#myInput').val();
          }
      }
      });
  } );
  &lt;/script&gt;
  </code></pre>
  
  <p>Server-side has this code:</p>
  
  <pre><code>&lt;?php
  //...HERE I have defined these: $sql_details, $table, $primaryKey, $columns 
  
  $where="`office`='$_POST['myInput']'";
  
  require( 'ssp.class.php' );
  echo    json_encode(SSP::simple($_GET,$sql_details,$table,$primaryKey,$columns,$where)); 
  </code></pre>
  
  <p>Where am I going wrong?  I have tried this based on many examples and post on the internet but I am ending up with the same result.</p>