Answer the question
In order to leave comments, you need to log in
Time Manipulation in PHP and JS
The following happens:
1. An object is formed on the client and sent to the server via the Angula $http service:
// insert record in table
var jsonForServer = {
'date' : $scope.selectedCalendarEvent,
'typeDate': 'local',
'events' : $scope.userClickedEvents.fullListTitles
};
// save to server
$http.post('calendar/updatedate', { calendar_record: jsonForServer })
.success(function(response)
{
console.log(response);
});
$calendar = json_decode(file_get_contents('php://input'));
$dateToInsert = $calendar->calendar_record->date;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question