I have a multidimensional array that consists of 426 smaller arrays that also contain 4 attributes. Below is an example of one of 426 arrays ...
array(
0 => array(
'name' => 'Danny',
'email' => 'your@email.com',
'picture_url' => 'http://www.website.com',
'score' => 89
),
)
I am sending this array with jquery ajax functions to a php file that adds them to the database ... My problem is that the array seems to be chopped off when it is sent to the php file. Only about half of the array actually reaches the php file ...
This led me to believe that when publishing on ajax there might be a file size limit. However, the size of my array seems relatively small.
I am running my application on WAMP ..
Can anyone shed light on what could happen?
UPDATE:
I send my array as follows:
$.ajax({
type: "POST",
url: "invite_friends.php",
data: {
theID: me.id,
friends: multidimensional_array
},
success: function(data, textStatus, jqXHR) {
return console.log(data);
},
error: function(jqXHR, textStatus, errorThrown) {
return alert("Error: Oops, there has been a problem");
}
});
And I get my array (at the prompt of another .php) like this.
if($_POST['friends']) {
$friends = $_POST['friends'];
} else {
$friends = FALSE;
}