"Miguel Guirao" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi!!
>
> I have a table with many options from when the user can select them,
> after that, his/her selections will be stored in a database.
>
> In the mean time, I want to store his/her selections in an array like
> this one:
>
>     PN Desc Qty
> |-----------------------|----------------------|-----------------------|
> |-----------------------|----------------------|-----------------------|
> |-----------------------|----------------------|-----------------------|
>
> How do I declare Duch an array like this??, let's call it Parts.
>
>
> Miguel Guirao
> Servicios Datacard
> www.SIASA.com.mx

Hi,

do you mean this:

$parts = array(array('PN' => $PN_value1, 'Desc' => $Desc_value1, 'Qty' =>
$Qty_value1),
               array('PN' => $PN_value2, 'Desc' => $Desc_value2, 'Qty' =>
$Qty_value2),
               array('PN' => $PN_value3, 'Desc' => $Desc_value3, 'Qty' =>
$Qty_value3)
              );

Regards, Torsten Roehr

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to