Re: adding up in a db

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14304
interpreted = N
texte = >Hi, > >Is there a math function that can add 1 to a number at the end of a db? I >am doing this for my bulletin board and would like messages to be numbered. > >For instance, my message.db would be: > >message name number >hi kevin 1 >see you john 2 > >and my [append] tag would do something like: > >[append message.db]message=[body]&name=[name]&number= > >the last number in the db+1 > >Thanks, >Kevin > > > Look at page 84 in the manual the listdatabases looks ok for this with the optional name tag and numrecords then a little math to + 1 to it and away you go.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: adding up in a db (Bennie Warren 1997)
  2. adding up in a db (Kevin Furuta 1997)
>Hi, > >Is there a math function that can add 1 to a number at the end of a db? I >am doing this for my bulletin board and would like messages to be numbered. > >For instance, my message.db would be: > >message name number >hi kevin 1 >see you john 2 > >and my [append] tag would do something like: > >[append message.db]message=[body]&name=[name]&number= > >the last number in the db+1 > >Thanks, >Kevin > > > Look at page 84 in the manual the listdatabases looks ok for this with the optional name tag and numrecords then a little math to + 1 to it and away you go.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:

WebCat2b12 - New features for 1.6 users ... (1997) 2nd WebCatalog2 Feature Request (1996) WebCatalog2 Feature Feedback (1996) OT - How to pay commissions to non US affiliates? (2000) all records returned. (1997) test (2003) Problems mit mysql (2004) WCS Newbie question (1997) [HIDEIF] inside [FOUNDITEM] (1997) RE: type 2 errors with ssl server (1997) webcat NT (1998) taxTotal problem (1998) WebMerchant 1.6 and https (1997) Problem displaying search result (1997) I give up!! (1997) New WebDNA Solutions ... (1997) stumped on simple sort (1999) A multi-processor savvy WebCatalog? (1997) [WriteFile] problems (1997) Using Applescript to process WebCatalog functions (1998)