Ok, finally solved.
The magic trick of JSON.stringify should have been in the correct place:
var params = {
data: JSON.stringify({
'userID': $scope.tasks.id,
'Age': $scope.aversion.choice,
'Experience': $scope.aversion.choice,
'Gender': $scope.aversion.choice,
'Nationality': $scope.aversion.choice,
'Assets': $scope.aversion.choice
}),
task: 'questions'
};
var httpConfig = {'params': params};
$http.get("ajax/dbHandler.php",httpConfig).success(function(data){
console.log(data);
});
Now my DB updates correctly.
Thanks :)
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.