Re: price totals
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 47846
interpreted = N
texte = post your code.----- Original Message -----From: kmac
To: WebDNA Talk Sent: Tuesday, February 18, 2003 1:22 PMSubject: Re: price totals> If it's outside the [founditems] loop, it show nothing, inside it shows> 2050 instead of just 50. I'm testing with 2 records, one price =20,> the other=30.>> On Monday, February 17, 2003, at 02:21 PM, Andrew Simpson wrote:>> > yeah - you need to output [pricetotal] to the screen.> >> > the founditems will just loop each of your records adding the price> > from the> > database to the running total which is price total.> >> > outside the founditems, the price total should equal the summ of all> > the> > prices that were returned in the search. hopefully> >> > ----- Original Message -----> > From: kmac > > To: WebDNA Talk > > Sent: Tuesday, February 18, 2003 1:14 PM> > Subject: Re: price totals> >> >> >> 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/> >> >> > -------------------------------------------------------------> > 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:
post your code.----- Original Message -----From: kmac To: WebDNA Talk Sent: Tuesday, February 18, 2003 1:22 PMSubject: Re: price totals> If it's outside the [founditems] loop, it show nothing, inside it shows> 2050 instead of just 50. I'm testing with 2 records, one price =20,> the other=30.>> On Monday, February 17, 2003, at 02:21 PM, Andrew Simpson wrote:>> > yeah - you need to output [pricetotal] to the screen.> >> > the founditems will just loop each of your records adding the price> > from the> > database to the running total which is price total.> >> > outside the founditems, the price total should equal the summ of all> > the> > prices that were returned in the search. hopefully> >> > ----- Original Message -----> > From: kmac > > To: WebDNA Talk > > Sent: Tuesday, February 18, 2003 1:14 PM> > Subject: Re: price totals> >> >> >> 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/> >> >> > -------------------------------------------------------------> > 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/
Andrew Simpson
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:
Bad Cookie / Internet Option / Internet Explorer (2004)
Problems passing [SKU] with $Replace in 2.0 (1997)
OFF-TOPIC...list serve software for newsletter? (1998)
easy numfound search? (2001)
frames & carts (1997)
Webcat2, WebCommerce, Mod 10 etc. (1997)
Cart/Cookie (2005)
WebDNA Codes in Secure Mode (1997)
Limiting [FoundItems] (2000)
[WebDNA] special chars (2009)
Netscape for MacOS X (2001)
Multiple prices (1997)
more on my bbs (1997)
Credit card processing - UK (1997)
Help name our technology! (1997)
LOOP and IF statements (1997)
RE: problem with applets embedded in tpl files (1997)
[WebDNA] WebDNA restart script (2015)
Why are some admin pages not encrypted? (2000)
encripted storage (1998)