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
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.
>
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
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);
4 matches
Mail list logo