Re: price totals
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 47841
interpreted = N
texte = Andrew, I assume to display the total I need to use [pricetotal] because i see nothing in the [founditems] until I use that variable. It shows 2050 for 2 items one a 20 and one a 30. I must be doing something wrong.On Monday, February 17, 2003, at 02:05 PM, Andrew Simpson wrote:> [text]pricetotal=0[/text]> [search db=.... search string user entered]> [founditems][text]pricetotal=[math][pricetotal]+[price][/math][/ > text][/found> items]> [/search]>> long way...>> ----- Original Message -----> From: kmac
> To: WebDNA Talk > Sent: Tuesday, February 18, 2003 12:59 PM> Subject: price totals>>>> Hi group, probably a dumb question, but I haven't done this before.>>>> I have a small db that has the cost of each record entered. It's not>> store, it just has a price entered for the record.>> If a user does a search and get a set amount of records I would like>> the total of the records found displayed at the bottom of the page.>>>> What is my best approach.? I used the field name [price] for each>> record.>>>> TIA>>>> Ken>>>>>> ------------------------------------------------------------->> 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://webdna.smithmicro.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://webdna.smithmicro.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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Andrew, I assume to display the total I need to use [pricetotal] because i see nothing in the [founditems] until I use that variable. It shows 2050 for 2 items one a 20 and one a 30. I must be doing something wrong.On Monday, February 17, 2003, at 02:05 PM, Andrew Simpson wrote:> [text]pricetotal=0[/text]> [search db=.... search string user entered]> [founditems][text]pricetotal=[math][pricetotal]+[price][/math][/ > text][/found> items]> [/search]>> long way...>> ----- Original Message -----> From: kmac > To: WebDNA Talk > Sent: Tuesday, February 18, 2003 12:59 PM> Subject: price totals>>>> Hi group, probably a dumb question, but I haven't done this before.>>>> I have a small db that has the cost of each record entered. It's not>> store, it just has a price entered for the record.>> If a user does a search and get a set amount of records I would like>> the total of the records found displayed at the bottom of the page.>>>> What is my best approach.? I used the field name [price] for each>> record.>>>> TIA>>>> Ken>>>>>> ------------------------------------------------------------->> 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://webdna.smithmicro.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://webdna.smithmicro.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://webdna.smithmicro.com/
kmac
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:
Answer: WebDelivery downloads alias, not original ? (1997)
[WebDNA] PayPal IPN - solved (2009)
Using [Include] Context (1999)
DNS Lookup 2 (2000)
Was 5.0 Pricing, now Sandbox versus Website and ruminating (2003)
Cold Fusion Buster (1997)
[OT] HTML TAB CODE (2002)
can WC render sites out? (1997)
[removehtml]? (2000)
Custom formulas.db (1998)
Search returns all, not 20 (1997)
request for comment tag (1998)
[REDIRECT] (1999)
Separate SSL Server (1997)
[listfiles] problems (1997)
Cart Template (1997)
E-mail loop ! (1997)
Quitting WebMerchant ? (1997)
Possible Bug in 2.0b15.acgi (1997)
WebCat2 - [format thousands] (1997)