Re: [PHP] Dynamic Arrays

2002-06-12 Thread Analysis & Solutions
Hi Folks: I was going to propose something similar. Allow me to tweak: > > * > * > > > > on you script page ># $mand = array("foo", "bar"); $mand = array('foo', 'bar'); > # $cnt = count($mand); > # for ($i = 0; $i < $cnt; $i++) > # if (!in_array($mand[$i], $my_array)) >

Re: [PHP] Dynamic Arrays

2002-06-12 Thread Miguel Cruz
On Wed, 12 Jun 2002, Tom Ray wrote: > I have an array question. I want to use a dynamic array but I don't know > how to do this. What I want to do is this, I want to write a form script > that takes the elements of the form and submits them in the array then I > want to do a loop and check to s

RE: [PHP] Dynamic Arrays

2002-06-12 Thread Martin Towell
13, 2002 12:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Dynamic Arrays I have an array question. I want to use a dynamic array but I don't know how to do this. What I want to do is this, I want to write a form script that takes the elements of the form and submits them in the array then I

[PHP] Dynamic Arrays

2002-06-12 Thread Tom Ray
I have an array question. I want to use a dynamic array but I don't know how to do this. What I want to do is this, I want to write a form script that takes the elements of the form and submits them in the array then I want to do a loop and check to see if each element in the array has a value

RE: [PHP] Dynamic Arrays?

2001-03-15 Thread Mark Roedel
> -Original Message- > From: RealGM [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 15, 2001 3:38 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Dynamic Arrays? > > > Hi, > > I have a bit of a dilemma. > > I have a number of array attributes, e

RE: [PHP] Dynamic Arrays?

2001-03-15 Thread John Guynn
My first idea is something like this: $counter=1 while ($counter <= some maximum number){ $arrayvalue="var".$counter write $arrayname[$arrayvalue] to database $counter++; } That should get the job done. One other idea (depending on if you are just storing data or if you need to manipulate i

[PHP] Dynamic Arrays?

2001-03-15 Thread RealGM
Hi, I have a bit of a dilemma. I have a number of array attributes, eg. $arrayname["var1"], $arrayname["var2"], $arrayname["var2"], etc. up to 58, and I want to write these into the database. What I am hoping to do is create a counter that goes through the insert routine, updating the numeric