RE: [PHP] two dimension array

From: Date: Fri, 01 Sep 2000 22:51:57 +0000
Subject: RE: [PHP] two dimension array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14888@lists.php.net to get a copy of this message
Something like: while ( /* fetch records */ ){ $poll[$recordkey]['pollchoice1'] = 'yes'; $poll[$recordkey]['pollchoice2'] = 'no'; $poll[$recordkey]['pollchoice3'] = 'yes'; } > -----Original Message----- > From: Floyd Baker [mailto:fbaker@olm1.com] > Sent: Friday, September 01, 2000 3:07 PM > To: php-general@lists.php.net > Subject: [PHP] two dimension array > > > Hi.. > > I need to finish this job tonight before I go away. I know > there's a lot of > into available but I'm really trying to get it done as quickly as > possible.. > Can someone please make it simple for me . > > I'm building a poll program which is nearly done but now I want > to put the vote > counts with the names of the choices. > > In the db we have record fields by the names of > pollchoice1, pollchoice2, and pollchoice3. > > To these we assign current choice names such as yes, no, or maybe > or red, green > or blue. I want to add the vote count to these fields along with > the names? > > Would someone please point to an example or lay one out? > I know it can be done but haven't worked with more than single > dimension arrays > before. > > Many thanks. > > Floyd Baker > > > -- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#14888) next »