Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this message"Miguel Guirao" <mguirao@acrosoft.net> wrote in message news:001701c48bb1$43d01880$0500a8c0@serv idor.net... > 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
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.