Re: math with a [numfound]

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62296
interpreted = N
texte = If your search fails the value inside the math context will be 1, that's probably why it's always being set to 1. Try this instead: [text]howmany=none[/text] [search db=^eb/ blogs_yes_no.db&eqOriginalBlogIDdatarq=[BlogBy]&eqStatusdatarq=Yes] [showif [numfound]!0] [replace db=^eb/ bloggers.db&eqbloggeriddatarq=[BlogBy]]numposts=[math][howmany]+1[/ math]&last-blog=[BlogID][/replace] success! [/showif] [showif [numfound]=0] sorry, the search found zero matching records. [/showif] [/search] [showif [howmany]=none] sorry, the search failed. [/showif] Sincerely, Kenneth Grome www.kengrome.com On Jun 21, 2005, at 10:06, Lester wrote: > Instead of increasing my "numposts" count I keep > getting it set back to a 1 > > What am I screwing up, or can I even do this with a > [numfound] value > > this is what I just tried that also set it back to "1" > > > [replace db=^eb/bloggers.db > &eqbloggeriddatarq=[BlogBy]]numposts=[math][search > db=^eb/ > blogs_yes_no.db&eqOriginalBlogIDdatarq=[BlogBy]&eqStatusdatarq=Yes][num > found][/search]+1[/math] > &last-blog=[BlogID][/replace] > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.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:

    
  1. Re: math with a [numfound] ( Lester 2005)
  2. Re: math with a [numfound] ( "Mark Pace" 2005)
  3. Re: math with a [numfound] ( Kenneth Grome 2005)
  4. Re: math with a [numfound] ( Kenneth Grome 2005)
  5. math with a [numfound] ( Lester 2005)
If your search fails the value inside the math context will be 1, that's probably why it's always being set to 1. Try this instead: [text]howmany=none[/text] [search db=^eb/ blogs_yes_no.db&eqOriginalBlogIDdatarq=[BlogBy]&eqStatusdatarq=Yes] [showif [numfound]!0] [replace db=^eb/ bloggers.db&eqbloggeriddatarq=[BlogBy]]numposts=[math][howmany]+1[/ math]&last-blog=[BlogID][/replace] success! [/showif] [showif [numfound]=0] sorry, the search found zero matching records. [/showif] [/search] [showif [howmany]=none] sorry, the search failed. [/showif] Sincerely, Kenneth Grome www.kengrome.com On Jun 21, 2005, at 10:06, Lester wrote: > Instead of increasing my "numposts" count I keep > getting it set back to a 1 > > What am I screwing up, or can I even do this with a > [numfound] value > > this is what I just tried that also set it back to "1" > > > [replace db=^eb/bloggers.db > &eqbloggeriddatarq=[BlogBy]]numposts=[math][search > db=^eb/ > blogs_yes_no.db&eqOriginalBlogIDdatarq=[BlogBy]&eqStatusdatarq=Yes][num > found][/search]+1[/math] > &last-blog=[BlogID][/replace] > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.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/ Kenneth Grome

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:

Error Lob.db records error message not name (1997) database freeze (1997) syntax question, not in online refernce (1997) Three new problems ... (1997) Email within tmpl ? (1997) [WebDNA] SendMail Problems, 453 (2016) Preserving form data (1999) Web*SSL and WebCatalog (1997) RE: protect tag not working (1998) Emailer help....! (1997) WebCat2b13MacPlugIn - syntax to convert date (1997) Trouble with formula.db + more explanation (1997) Web Catalog Instability (2000) [WebDNA] Cheers (2008) Credit Card Gateways (2005) Multiple Passwords (1997) SFTP (2004) Max Record length restated as maybe bug (1997) randomness (1997) WC TableGrinder (1997)