Re: Creating single row for multiple items.
| From: | Diogo Neves | Date: | Tue, 02 Sep 2008 18:31:28 +0000 |
| Subject: | Re: Creating single row for multiple items. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279306@lists.php.net to get a copy of this message | ||
On Tue, Sep 2, 2008 at 7:17 PM, brian <php@logi.ca> wrote:
> Tom Shaw wrote:
>
>> My array looks very similar to this. I need to create a single row for the
>> items that have the same order number for CSV export. I'd prefer to do
>> this
>> PHP wise instead of SQL. But would appreciate any help I can get.
>>
>>
>> $ar = array(
>>
>> array(
>>
>> "order_id" => "34",
>>
>> "order_number" => "35Y345Y356YU3",
>>
>> "order_name" => "Steinway Grand Piano #11",
>>
>> "order_ordered_size" => "Grand",
>>
>> "order_sales_price" => "78671.90",
>>
>> "order_shipping_price" => "7.85",
>>
>> "order_shipping_extra" => "0.06",
>>
>> ),
>>
>> array(
>> ...
>>
>
> A single row of *what*? The order_ids? The order_names? Perhaps you should
> post an example of the outcome you're looking for.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> Yep, i got lost too ;)
--
Thanks for your attention,
Diogo Neves
Web Developer @ SAPO.pt by PrimeIT.pt