Michael,
Been there recently!
You want to use variable variables:
$index=0;
for (index=0; $index $rowcount; $index++){
$formvar='formvar'.$index;
$formvar=$$formvar;
Do the last two lines for each piece of data you want to handle.
Think about how you are isolating the formvars on the
Better is:
$index=0;
for (index=0; $index $rowcount; $index++){
$formvar=${'formvar'.$index};
}
- Original Message -
From: george Pitcher [EMAIL PROTECTED]
To: Michael Romagnoli [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, February 22, 2002 2:40 PM
Subject: Re: [PHP]
Yeah, but, where does $rowcount come from, $or? Are you just renaming the
variable?
Thanks for your help!
-Mike
-Original Message-
From: george Pitcher [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 7:40 AM
To: Michael Romagnoli
Cc: [EMAIL PROTECTED]
Subject: Re:
So, then I have a sql command for updating the data with $formvar? I would
work $domain into this because $domain is the unique identifier?
Like this:
$index=0;
for (index=0; $index $rowcount; $index++){
$formvar=${'formvar'.$index};
$sql = UPDATE table2 SET domain =
4 matches
Mail list logo