for(var i=0;i<MyObject.response.length;i++){
MyObject.response[i]['formatted_address ']= $scope.mapAdd.results[0].formatted_address;
}
navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
destinationType: Camera.DestinationType.DATA_URL
});
function onSuccess(imageData) {
var image = document.getElementById('myImage');
image.src = "data:image/jpeg;base64," + imageData;
}
function onFail(message) {
alert('Failed because: ' + message);
}
$curl = new Curl();
$curl->setHeader('X-Parse-Application-Id','ONslZj4aWM**********************rmppeR');
$curl->setHeader('X-Parse-REST-API-Key','VYHVACjA5w***************************alrRo8zjf');
$curl->setHeader('Content-Type','application/json');
$curl->post("https://api.parse.com/1/push", '{ "channels": [ "Giants" ], "data": { "alert": "сообщение" } }');
$curl->close();
SELECT
a.*,
b.*,
c.*
FROM
`contacts` AS a
LEFT JOIN
`users_app` AS b
ON
b.id = a.id_contact
LEFT JOIN
`messages` AS c
ON
c.`id` =
(
SELECT
MAX(d.id)
FROM
`messages` AS d
WHERE
(
d.id_user = a.id_user
AND
d.id_from_user = a.id_contact
)
OR
(
d.id_user = a.id_contact
AND
d.id_from_user = a.id_user
)
)
WHERE
a.id_user = $id_user
<div ng-repeat="user in dialogs.response">
<p>{{ name }}</p>
<p>{{ login }}</p>
<p>{{ data_reg }}</p>
</div>