numero = 17995
interpreted = N
texte = >I have a list of found records that I want to update all at once. I have>them listed seperately where mid=member id number>>[founditems]>>>[/founditems]>>form submits>>Now I need to update each mid and my logic is failing.>>[loop start=1&end=[records]&advance=1]>[replace>db=memberinfo.db&eqmiddata=[math][mid[index]][/math]]status=[status][/repla>ce]>[Name] updated>[/loop]Hi Bob,You're creating several mid[index] and status[index] values in the form, but you're only using the mid[index] values in the replace context. I also think this is one of those situations where you need to put your nested varuables into [interpret] contexts instead of that [math] context. I believe this should work for you:[loop start=1&end=[records]][replace db=memberinfo.db&eqmiddata=[interpret][mid[index]][/interpret]]status=[interpret][status[index]][/interpret][/replace][Name] updated [/loop]Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
>I have a list of found records that I want to update all at once. I have>them listed seperately where mid=member id number>>[founditems]>>>[/founditems]>>form submits>>Now I need to update each mid and my logic is failing.>>[loop start=1&end=[records]&advance=1]>[replace>db=memberinfo.db&eqmiddata=[math][mid[index]][/math]]status=[status][/repla>ce]>[Name] updated>[/loop]Hi Bob,You're creating several mid[index] and status[index] values in the form, but you're only using the mid[index] values in the replace context. I also think this is one of those situations where you need to put your nested varuables into [interpret] contexts instead of that [math] context. I believe this should work for you:[loop start=1&end=[records]][replace db=memberinfo.db&eqmiddata=[interpret][mid[index]][/interpret]]status=[interpret][status[index]][/interpret][/replace][Name] updated [/loop]Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Kenneth Grome
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...