Re: Array

From: Date: Thu, 26 Aug 2004 22:01:16 +0000
Subject: Re: Array
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-35903@lists.php.net to get a copy of this message
"Miguel Guirao" <mguirao@acrosoft.net> wrote in message news:001701c48bb1$43d01880$0500a8c0@servidor.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

« previous php.db (#35903) next »