Re: [PHP] Getting the data for MySQL and then putting it back withPHP - at a loss!

2002-02-22 Thread george Pitcher
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

Re: [PHP] Getting the data for MySQL and then putting it back withPHP - at a loss!

2002-02-22 Thread Andrey Hristov
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]

RE: [PHP] Getting the data for MySQL and then putting it back withPHP - at a loss!

2002-02-22 Thread Michael R @ Spy
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:

RE: [PHP] Getting the data for MySQL and then putting it back withPHP - at a loss!

2002-02-22 Thread Michael R @ Spy
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 =