Re: [PHP] Problems with multiple arrays

2005-05-23 Thread Brent Baisley
For your result, you want to create the array something like this: $array_data[] = array('id'=>'1', 'name'=>'1', 'email'=>'1'); $array_data[] = array('id'=>'2', 'name'=>'2', 'email'=>'2'); $array_data[] = array('id'=>'3', 'name'=>'3', 'email'=>'3'); ... Each array "record" will contain three "fi

RE: [PHP] Problems with multiple arrays

2005-05-23 Thread Shaw, Chris - Accenture
Sorry, sent the wrong code. $value) { echo $full_data[0][$key], ' - ', $full_data[1][$key], ' - ', $full_data[2][$key], ' '; } ?> Result: id_1 - name_1 - email_1 id_2 - name_2 - email_2 id_3 - name_3 - email_3 id_4 - name_4 - email_4 This message has been delivere

RE: [PHP] Problems with multiple arrays

2005-05-23 Thread Shaw, Chris - Accenture
Try this: $value) { echo $full_data[0][$key], ' - ', $full_data[1][$key], ' - ', $full_data[2][$key], ' '; } ?> Result: id_1 - name_1 - email_1 id_2 - name_2 - email_2 id_3 - name_3 - email_3 I am sure someone that has been doing php for more than 2 weeks can better that code. I am still a