aaron kant add (2.x)
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 28893
interpreted = N
texte = I have a db full of numbers. and I want daily and final totals.I set my numbers to 0[math show=f]newtotal=0[/math]so I do a search on the db to find each different day,[searchdb=ordertracking.db&neskudata=bogus&orderdatesumm=t&deorderdatesort=1&orderdatetype=date][founditems][math show=f]DAYcommish=0[/math] <-I set the daily to 0 here
[orderdate] | then I do an inner search for each order on each day...[search db=ordertracking.db&eqorderdatedata=[orderdate]][founditems][mathshow=f]newtotal=(newtotal+[ordertotal])[/math] [/founditems][/search] |
[/founditems][/search]Then at the end I display my new total which is all of the daily totals...total: [math show=t]newtotal[/math]
Problem is I'm getting wildly different results each time I run it. Am Idoing something dumb? if I urlthe second search thuslyb&eqorderdatedata=[url][orderdate][/url]] it seems consistant, but I don'tunderstand why. is it dividing the dates? mm/dd/yyyy even so, wouldn't itbe the same every time?-Aaron LynchDigital Speed Networks206.227.4934 <-Please note new phone #-------------------------------------------------------------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
Associated Messages, from the most recent to the oldest:
I have a db full of numbers. and I want daily and final totals.I set my numbers to 0[math show=f]newtotal=0[/math]so I do a search on the db to find each different day,[searchdb=ordertracking.db&neskudata=bogus&orderdatesumm=t&deorderdatesort=1&orderdatetype=date][founditems][math show=f]DAYcommish=0[/math] <-I set the daily to 0 here[orderdate] | then I do an inner search for each order on each day...[search db=ordertracking.db&eqorderdatedata=[orderdate]][founditems][mathshow=f]newtotal=(newtotal+[ordertotal])[/math] [/founditems][/search] |
[/founditems][/search]Then at the end I display my new total which is all of the daily totals...total: [math show=t]newtotal[/math]
Problem is I'm getting wildly different results each time I run it. Am Idoing something dumb? if I urlthe second search thuslyb&eqorderdatedata=[url][orderdate][/url]] it seems consistant, but I don'tunderstand why. is it dividing the dates? mm/dd/yyyy even so, wouldn't itbe the same every time?-Aaron LynchDigital Speed Networks206.227.4934 <-Please note new phone #-------------------------------------------------------------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
Aaron Lynch
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:
Plugin or CGI or both (1997)
multi-paragraph fields (1997)
Configuring E-mail (1997)
Error:Too many nested [xxx] contexts (1997)
Need help (1998)
Email encryption (1998)
Separate SSL Server (1997)
I give up!! (1997)
WebCat Code and WebStar Search? (2000)
WebCat2b13MacPlugIn - More limits on [include] (1997)
Template Encryption (1998)
Upgrading old WebCat Database Files (1997)
Secure Server basic question... (1997)
how do I delete 1 of 2 identical records? (2003)
Date math format (1998)
Navigator Parsing (1997)
double lines in sendmail (2008)
Bug alert! (1997)
SQL Changes in 3.0.7? (2000)
WC3 and SSL on NT (1998)