Re: [PHP] order/reorder pull out data from arrays

2006-07-12 Thread tedd
At 10:01 PM +0200 7/11/06, Jochem Maas wrote: > > > Anyway I can do that? > >as many as there ways to skin a cat probably :-) Yeah, but the cat ain't going to like any of them -- Jeff Foxworthy :-) tedd -- http

Re: [PHP] order/reorder pull out data from arrays

2006-07-11 Thread Jochem Maas
Dallas Cahker wrote: > I have an array that i would like to sort and reorder based on a simple > critera. I already order the data but I would like to break the data now > into sections by customer id, so one customer has 5 things and another > customer has one. How can I do that with an array. >

Re: [PHP] order/reorder pull out data from arrays

2006-07-11 Thread Jake Gardner
Ok I understand your method now. your code does not match your output. how would your print line produce that , $customerid ? anyways... $data = orders($id,$status); $c = count($data); $currentId; $n = 1; for($i=0; $i<$c; $i++) { $orderid = $data[$i]['orderid']; $customerid = $data[$i]['cu

[PHP] order/reorder pull out data from arrays

2006-07-11 Thread Dallas Cahker
I have an array that i would like to sort and reorder based on a simple critera. I already order the data but I would like to break the data now into sections by customer id, so one customer has 5 things and another customer has one. How can I do that with an array. $data = orders($id,$status);