A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [AS3] Amfphp Multidimensional Array

  1. #1
    Member
    Join Date
    May 2008
    Posts
    49

    [AS3] Amfphp Multidimensional Array

    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 ) == )
                {
                    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!

  2. #2
    Member
    Join Date
    May 2008
    Posts
    49
    anyone? bump...

  3. #3
    Member
    Join Date
    May 2008
    Posts
    49
    Bump again? Am I in the wrong section, or is everyone as clueless as me?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center