|
Posted by Karl Irvin on 09/26/35 11:37
Thanks. That worked perfectly.
"J2be" <info@nospamj2be.com> wrote in message
news:43cc73b7$0$1072$4fafbaef@reader1.news.tin.it...
>> // display each order line - this part works
>> // add each order line to an array - only gets the second (last) cart
>> item
>> $OrderLines = array($i => array("Item" => $$tempname,
>> "Qty" => $$tempquantity,
>> "Extended" => $$tempgross ));
>> }
>
> <?PHP
> //declare the array at the top of your code
> $OrderLines = array();
>
> //........
> //tell to which key you want to add the array as value
> $OrderLines[$i] = array("Item" => $$tempname, "Qty" => $$tempquantity,
> "Extended" => $$tempgross );
>
> //you can also use array_push() function to have the same result.
>
> ?>
> -------------------------------------------------
>
>
> Cheers.
>
>
>
> --
> ----
> Leonardo Armando Iarrusso - J2Be
> www: http://www.J2be.com - e-mail: info[at]J2Be.com
>
>
>
>
Navigation:
[Reply to this message]
|