I need to show in a form de telephones from database one by one

Hi , i need to show a list of telephones from table one by one in a form.
I tried to use ajax request

$.ajax({
data: “”,
url: method.php’,
type: ‘post’,
beforeSend: function () {alert(“comienza”);
},
datatype : “json”,
contentType: “application/json;charset=utf-8”,
success: function (response) {alert(response);

	}

});

In the php code

consulting database
if (!empty({ds})){
for ($i = 0; $i < count({ds}) ; $i++ ){
$array_result[$i] = {ds[$i][0]};
}
}

echo json_encode($array_result);

but i cant get the telephone , i only get the page code

Can someone helpme please.

The idea is once obtain the telephones put the function inside a time_out to call a javascript function to send sms text and show each cel and message meanwhile each sms is sent.

Thanks in advance