I have an array of which each element is an array, like so:
results = {
{1, "A", 11, 0, 7, 0},
{2, "A", 13, 2, 2, 1},
{3, "A", 7, 0, 2, 2}
}
And I was wondering how I could send this to PHP via jQuery's .ajax function?
My jQuery call at the moment looks like:
$.ajax({type: "POST",
url: "updateResults.php",
data: "results="+results,
success: function(data) {
if(data == "ok") {
$("#msgSuccess").show();
} else {
$("#msgError").show();
}
}
});
Thanks!