"Miguel Guirao" <mguirao@xxxxxxxxxxxx> wrote in message news:001701c48bb1$43d01880$0500a8c0@xxxxxxxxxxxxxxx > 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