Hello, I have a section of a php script that sends my as3 flash file a multi dimensional array via AMFPHP.
PHP Code:
$data = array();
while ($mail_row = mysql_fetch_assoc($results_mail))
{
array_push($data, $tempdata = array($mail_row['from_player_id'], $mail_row['_sent'], $mail_row['subject'], $mail_row['message']));
}
if ( mysql_num_rows( $results_mail ) == 0 )
{
return "0,No Mail";
}
return "0,".$data;
That will take specific data from every row of results and push it into an array. For each row found, it creates a new row of an array.
So im sure I need to do something alone the lines of looping through _data[1] for in, but can't get a working result. It either traces 'Array', or nothing at all.
Thanks!