Re: dates and hex formatting

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14251
interpreted = N
texte = >Hi All, > >Can anyone suggest a solution to my problem. > >I'm using the loop command to append multiple records to a database with a >single user action. I want to use the cart command to generate a new SKU >for each record generated by the loop command. > >The looping works fine and the appending works fine, but I can't figure out >how to get a new SKU for each record ? > >The code I am using is listed below. > >[loop start=1&end=[number]&advance=1] >[append >db=photos.db]sku=[cart]&url=[entrydate.form]&preview=sml[index].jpg[/append] >Record [index] added
>[/loop] > > > >Thanks in advance. > >Tim Rignold > If I'm right using the [cart] like that is going to give you the same sku. If you are just using an ordered sku like 1 - 100 why not get the last one and add 1 to it. That would be pretty easy.Bennie************************************** Bennie Warren /\ LemooreNet / / 320 West D Street / / Lemoore, CA 93245 / / /\ /\ Phone: 209.924.5909 / /_ _ / \ / / Fax 209.924.9578 \ _ _ / /\ \/ / bennie@lemoorenet.com / / \ / http://www.lemoorenet.com /_/ \/ ************************************** Associated Messages, from the most recent to the oldest:

    
  1. Re: dates and hex formatting (Bennie Warren 1997)
  2. Re: dates and hex formatting (Kenneth Grome 1997)
  3. Re: dates and hex formatting (Grant Hulbert 1997)
  4. Re: dates and hex formatting (Kenneth Grome 1997)
  5. dates and hex formatting (Tim Rignold 1997)
  6. dates and hex formatting (Tim Rignold 1997)
>Hi All, > >Can anyone suggest a solution to my problem. > >I'm using the loop command to append multiple records to a database with a >single user action. I want to use the cart command to generate a new SKU >for each record generated by the loop command. > >The looping works fine and the appending works fine, but I can't figure out >how to get a new SKU for each record ? > >The code I am using is listed below. > >[loop start=1&end=[number]&advance=1] >[append >db=photos.db]sku=[cart]&url=[entrydate.form]&preview=sml[index].jpg[/append] >Record [index] added
>[/loop] > > > >Thanks in advance. > >Tim Rignold > If I'm right using the [cart] like that is going to give you the same sku. If you are just using an ordered sku like 1 - 100 why not get the last one and add 1 to it. That would be pretty easy.Bennie************************************** Bennie Warren /\ LemooreNet / / 320 West D Street / / Lemoore, CA 93245 / / /\ /\ Phone: 209.924.5909 / /_ _ / \ / / Fax 209.924.9578 \ _ _ / /\ \/ / bennie@lemoorenet.com / / \ / http://www.lemoorenet.com /_/ \/ ************************************** Bennie Warren

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:

PCS Customer submissions ? (1997) ACGI processing for .html (1997) Proposed FormVariables hierarchy (2000) Grep and <> (2005) [OT] Mozilla | Was: R.I.P. Netscape (2003) WebCatalog and WebMerchant reviewed by InfoWorld (1997) Using [showif] within [lineitems] (2000) Mac -Shareware Listserver (1998) How To question on setting up downloads (1997) ^ in a path (2001) Multiple prices (1997) Dividers (2003) WebMerchant 1.6 and https (1997) Newbie problem blah blah blah (1997) creator code (1997) Bug report: Insecure variables and SPAWN (2001) [carts] and databases (1997) UPPERCASE (1997) Change [cart] date (2002) WebMerchant/MacAuthorize (1998)