Right now I need to use phonegap to call on a php script on another webserver  to retrieve data from a database i have. Running the script with hard codes retrieves the data correctly but it appears as tho either the ajax call is not returning anything or not even getting the data as post. Currently in the console I am getting "Origin null is not allowed by Access-Control-Allow-Origin. "
    $(document).ready(function() {      
       $('.check').click(function(){
       alert("Step1");
       var thisID    = $(this).attr('id');
       alert(thisID);
       $.ajax({
           type: "POST",
           url: "http://csmaster.sxu.edu/group2/group2/CougarLunch/retrieveColumn.php",
           data: { ID: thisID},
           cache: false,
           async:true,
           datatype: "json",
           success: function(data)
               {
             console.log(data);
             alert(data.ItemID);
              }
          });
          }); 
          });
PHP if it is relevent I doubt it tho
    if(isset($_POST['ID']))
      {
       $ID = $_POST['ID'];
       function retrieve($ID)
         {
          $stmt = $mysqli->query("SELECT * FROM  group2.menu  WHERE ItemID = $ID");
          if($stmt->num_rows) //if there is an ID of this name
            {  
              $row = $stmt->fetch_assoc();
              echo $row;
              print json_encode($row);  
           }
        }
 
     
     
    