function getfromto(starts,ends)
{
var select;
var ft =
'from=' + starts + '&to=' + ends;
$.ajax({
url:'lft.php',
type:'GET',
asynch: false,
data: ft,
success: function(data)
{
select = data;
console.log(select);
}
});
console.log(select);
return select;
}