REPLACE and/or APPEND
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 41739
interpreted = N
texte = I want to add a record to a database (based on a session id) if it does notalready exist, otherwise I just want to update it. It seems I am going thelong way about this. Can't I get REPLACE to do it in one line of WebDNAcode? Here is my sad solution:[TEXT]found=[LOOKUPdb=sessions.db&value=[sessionid]&lookinfield=sessionid&returnfield=sessionid¬found=][/TEXT][SHOWIF [found]!] [REPLACEdb=sessions.db&eqsessionidDATAreq=[sessionid]]info=[info][/REPLACE][/SHOWIF][HIDEIF [found]!] [APPEND db=sessions.db]sessionid=[sessionid]&info=[info][/APPEND][/HIDEIF]Thanks-------------------------------------------------------------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:
I want to add a record to a database (based on a session id) if it does notalready exist, otherwise I just want to update it. It seems I am going thelong way about this. Can't I get REPLACE to do it in one line of WebDNAcode? Here is my sad solution:[text]found=[LOOKUPdb=sessions.db&value=[sessionid]&lookinfield=sessionid&returnfield=sessionid¬found=][/TEXT][SHOWIF [found]!] [REPLACEdb=sessions.db&eqsessionidDATAreq=[sessionid]]info=[info][/REPLACE][/SHOWIF][HIDEIF [found]!] [APPEND db=sessions.db]sessionid=[sessionid]&info=[info][/APPEND][/HIDEIF]Thanks-------------------------------------------------------------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/
Chris List Recipient
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:
Interfacing WebMerchant to www.fedex.com (1997)
[shell] (2002)
trouble updating records in database (1998)
Location of Browser Info.txt file (1997)
ShowIf, If, XML Syntax.... (2004)
New Webcatalog for Mac (1997)
Ready to h[url]!!! (1999)
WebCatalog for guestbook ? (1997)
WebCat2b13MacPlugIn - More limits on [include] (1997)
Reversed words (1997)
Adding up weights (1998)
Problems with command=replace in realm (2000)
syntax question, not in online refernce (1997)
[OT] MacOs IE5 topmargin and leftmargin bug (2000)
Has anyone integrated ZipBurst with WebCat? (2000)
How Many SKU's is enough? (1997)
Suggestions (1998)
[WebDNA] Need to convert unix date? (2009)
Mozilla/4. and Browser Info.txt (1997)
Save Word/Excel Docs to Server (2002)