title: Searching database to return a number back to javascript using two javascript variables
body: <p>How can I set <code>color</code> to be a 0, 1, 2 , or a 3 depending if certain things in the database are <code>null</code>?</p>
  
  <p>I also need to pass variables back from Javascript to PHP. How can I do that?</p>
  
  <pre><code>var date = year + '-' + showM + '-' + showD + ' ' + '00:00:00';
  var  eid=0001;
  console.log(date);
  var color = &lt;?php
      require_once('mcl_Oci.php');
      $xdm = new mcl_Oci("xdm");`
      $sql = "SELECT x.*,x.ROWID FROM test.FORM x 
      WHERE DATE_OF_FORM =Get(Date)
  WHERE EID =GET(eid)
  ;
  </code></pre>