Re: Replace/Commit not Replacing/Commiting
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35900
interpreted = N
texte = John,Try using the code below instead. I changed how the [math] variable wasbeing written. I also [url]'d the replace values for good practice...[math show=f]mycustomernum=[lookupdb=customernum.txt&lookinfield=sku&value=fred&returnfield=customernum¬found=0]+3[/math][replace db=customernum.txt&eqskudatarq=fred]customernum=[url][mycustomernum][/url][/replace]Jason Sofonia:: Digital Frontier :: jason@digitalfrontier.com ::on 08.08.00 12:43 pm, John Davies at jd@professionalideas.com wrote:> Ok here's a good one,> > Here is what I want this to do:> > 1) Pull a number from a db.> 2) Increment that number by 3.> 3) Save that number back to the file, so that next time I call the number it> is different.> > > > [replace > db=customernum.txt&eqskudatarq=fred]customernum=[mycustomernum][/replace]> > [commitdatabase customernum.txt]> > Here is what I see on screen:> > 1) customerum gets pulled from db.> 2) mycustomernum increments by 3.> 3) When I open the file to check to see if it has been updated, nothing has> changed.> > If I add WebDNA to track the progression of this code everything works fine> on screen. Every time I reload the page customernum increments by 3. It just> never writes the new number back to the file.> > I know that I don't need the [commitdatabase customernum.txt], but I threw> that in to force WebCat to write the file, with no sucess.> > Any ideas? > > > John Davies> jd@professionalideas.com> _____________________________________________> Martin Associates Design Agency> http://www.professionalideas.com> -------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
John,Try using the code below instead. I changed how the [math] variable wasbeing written. I also [url]'d the replace values for good practice...[math show=f]mycustomernum=[lookupdb=customernum.txt&lookinfield=sku&value=fred&returnfield=customernum¬found=0]+3[/math][replace db=customernum.txt&eqskudatarq=fred]customernum=[url][mycustomernum][/url][/replace]Jason Sofonia:: Digital Frontier :: jason@digitalfrontier.com ::on 08.08.00 12:43 pm, John Davies at jd@professionalideas.com wrote:> Ok here's a good one,> > Here is what I want this to do:> > 1) Pull a number from a db.> 2) Increment that number by 3.> 3) Save that number back to the file, so that next time I call the number it> is different.> > > > [replace > db=customernum.txt&eqskudatarq=fred]customernum=[mycustomernum][/replace]> > [commitdatabase customernum.txt]> > Here is what I see on screen:> > 1) customerum gets pulled from db.> 2) mycustomernum increments by 3.> 3) When I open the file to check to see if it has been updated, nothing has> changed.> > If I add WebDNA to track the progression of this code everything works fine> on screen. Every time I reload the page customernum increments by 3. It just> never writes the new number back to the file.> > I know that I don't need the [commitdatabase customernum.txt], but I threw> that in to force WebCat to write the file, with no sucess.> > Any ideas? > > > John Davies> jd@professionalideas.com> _____________________________________________> Martin Associates Design Agency> http://www.professionalideas.com> -------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Jason Sofonia
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
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...
Related Readings:
Emailer problem (1998)
URGENT: NO BUG, woFIELDdata & FIELDword=ww (2002)
[WebDNA] How to create a MD5 hash & decrypt it (2011)
FYI: virus alert (1996)
WebCat2b15MacPlugin - showing [math] (1997)
Weird Math and SV (1997)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
Hello??? (1997)
Search minus first found (1999)
Using Encrypt/Decrypt (2003)
Hosts who have upgraded to v5.0? (2003)
Nested Loops and SHOWIFs (1997)
Problems with date math (1997)
upgrade? (1997)
I try hard to think positively (1998)
[OT] Indexing of dynamic web sites (2003)
can you take a look #2 try (2003)
CommandSecurity? (1997)
ListFiles (1998)
Not really WebCat (1997)