<?php
include("../../db.php");
header("Access-Control-Allow-Origin: * ");


             $id=$_REQUEST['id'];
             $token=$_REQUEST['token']; 
	
 $aryData=array(
	
		 "fcm_token"=>$token
		 
	 );
 	
  		
	$flgUp=$db->updateAry("student",$aryData,"where idno='$id' ");
	
if($flgUp)
	{  
		echo json_encode(array('status' => 1, 'msg'=>'token Changed Successfully..!'));    
			
	}else
	{		
	 	echo json_encode(array('status' => 0, 'msg'=>'Unable to change token..!'));
	}
	

?>