Help with Lookup

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39268
interpreted = N
texte = Hello all,I am trying to get this to work, without success.[text]cook=[GetCookie name=Interchill-ID][/text][text]cart=[lookup db=subscribers.db&lookinfield=COOKIE&value=[cook]&returnfield=SKU¬found=[ cart][/text][interpret][cart][/interpret] at the end doesnąt work either.If a cookie exists lookup should find cart number from db, if not provide new one. Well that was the plan...Then my next line repeats the lookup (backwards) in a poor attempt to determine if Webcat has issued a new cart or not.[hideif [lookup db=subscribers.db&lookinfield=SKU&value=[cart]&returnfield=COOKIE¬found=N EW_USER]=NEW_USER] [text]action=display[/text] [/hideif]The objective of this is to route existing customers (with Cookie) usingAction=displayCan anyone help with a simpler solution for this same end. I'm suffering from screen haze!-- Edell & Co. Ltd.T 01857 644 256 F 01857 644 257 ------------------------------------------------------------- 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:

    
  1. Help with Lookup (p 2001)
Hello all,I am trying to get this to work, without success.[text]cook=[GetCookie name=Interchill-ID][/text][text]cart=[lookup db=subscribers.db&lookinfield=COOKIE&value=[cook]&returnfield=SKU¬found=[ cart][/text][interpret][cart][/interpret] at the end doesnąt work either.If a cookie exists lookup should find cart number from db, if not provide new one. Well that was the plan...Then my next line repeats the lookup (backwards) in a poor attempt to determine if Webcat has issued a new cart or not.[hideif [lookup db=subscribers.db&lookinfield=SKU&value=[cart]&returnfield=COOKIE¬found=N EW_USER]=NEW_USER] [text]action=display[/text] [/hideif]The objective of this is to route existing customers (with Cookie) usingAction=displayCan anyone help with a simpler solution for this same end. I'm suffering from screen haze!-- Edell & Co. Ltd.T 01857 644 256 F 01857 644 257 ------------------------------------------------------------- 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/ p

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:

addlineitems within formvariable loop (1998) carriage returns in data (1997) Need host (1998) Security Tip (1996) [WriteFile] problems (1997) webcat in the subject line - SMSI (2002) SQL - Output into file (2004) RE: New WebCatalog Version !!! (1997) unable to launch acgi in WebCat (1997) underscore in variable name (2000) WebCat2 beta 11 - new prefs ... (1997) shownext not showing next...still r2 (1997) PIXO support (1997) Sendmail truncation in Eudora Clients (1998) Browser Back button (2003) WebDNA 4.5.1 Now Available (2003) New commands in Final candidate (1997) BBEdit and WebCatalog 2.0? (1997) [OT] Passing a WebDNA variable through flash (2004) Please.. copies of Digest for 7/29 and 7/30? (1997)