<?php 

include("db_config.php"); 
if($_SERVER['REQUEST_METHOD']=='POST'){
$sql2="SELECT * from term_condition";
$exe2=mysqli_query($conn,$sql2);
$res=mysqli_fetch_array($exe2);
$url=html_entity_decode($res['data']);       
	if(!empty($url)) {
	  $response['data']=$url;
	  $response['status']=1;
	}
	else {
		$response['status']=0;
	}
	echo json_encode($response);
	mysqli_close($conn);
}