I have this jquery ajax function:
$.ajax({
url: '/private_cloud/add_app/'+school_id+'/'+app_id,
dataType: "json",
async: false,
success: function(data){
if(data.status == 1)
{
console.log(data.status);
}
},
error: function(error){
alert("Error");
}
});
When I am using chrome, and firefox, this is working perfectly fine. But when I am using internet explorer, it shows in the console "1" but the data wasn't even inserted in the Database.
This is my code in PHP:
public function add_app($school_id = NULL, $app_id = NULL)
{
if($this->School->save($get_school))
{
echo '{"status":"1"}';
}
else{
echo '{"status":"0"}';
}
die;
}