Re: Nested foreach ?

From: Date: Sun, 17 Oct 2004 20:18:49 +0000
Subject: Re: Nested foreach ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-199678@lists.php.net to get a copy of this message
Okay, I will try - I have these three fields in a form for user input. There are 10 sets of these, i.e. Users can enter three sets of skills, with the yearsused and when last used. I have set them up as arrays, since it's probably not wise to manage 30 seperate variables. I'm using session variables: $_SESSION['skills'] = $_POST['skill']; $_SESSION['skys'] = $_POST['sky']; $_SESSION['slus'] = $_POST['slu']; My problem is I do not know how to get these into the database with one query. Hope this is clearer. Thank you , Stuart --- Robby Russell <robby@planetargon.com> wrote: > On Sun, 2004-10-17 at 13:08 -0700, Stuart Felenstein > wrote: > > They are related in the sense that they are part > of > > one record in the database. > > Fields > > Skill YearsUsed LastUsed > > > > When you say array of arrays you are referring to > a > > multi-dimensional ? I'm not sure what you mean by > > > are the [0] related. > > > > Thank you, > > Stuart > > I guess that I am just trying to figure out what > your issue is. > > Can you explain what the issue is a bit more, in > plain english and > perhaps I can help you from there. > > All I can see right now is that you are having an > issue with a nested > foreach, but didn't really explain what the issue > was. > > -Robby > > > -- > /*************************************** > * Robby Russell | Owner.Developer.Geek > * PLANET ARGON | www.planetargon.com > * Portland, OR | robby@planetargon.com > * 503.351.4730 | blog.planetargon.com > * PHP/PostgreSQL Hosting & Development > ****************************************/ > > > ATTACHMENT part 2 application/pgp-signature name=signature.asc

« previous php.general (#199678) next »