[what] [am] [I] [missing]?
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 51090
interpreted = N
texte = OK, it's got to be something simple -- probably syntax related -- that is causing this logic to just plain not work. When I hit the submit button it goes to the page, but doesn't write to the ..db or anything...Can anybody see anything obvious that I am missing?FORM:--------------------------------------------------------------
--------------------------------------------------------------article_vote.html:--------------------------------------------------------------[!] -- ## Check to see if article record already exists in database -- [/!] [text show=f]exists=[lookup db=^article_ratings/article_ratings.db&lookinfield=ARTICLE&value=[thisArticle]&returnfield=[rating]¬Found=NOT_FOUND][/text][!] -- ## END Check to see if article record already exists in database -- [/!][!] -- ## If article already exists in database, then add vote. If not, create record, then add vote -- [/!] [showif [exists]=NOT_FOUND] [append db=^article_ratings/article_ratings.db][!] [/!]article=[thisArticle][!] [/!]vote1=0[!] [/!]vote2=0[!] [/!]vote3=0[!] [/!]vote4=0[!] [/!]vote5=0[!] [/!][/append] [math show=f]exists=0[/math] [/showif] [replace db=^article_ratings/article_ratings.db&eqARTICLEdata=[thisArticle]&[rating]type=num][!] [/!][rating]=[math][exists]+1[/math][!] [/!][/replace][!] -- ## END If article already exists in database, then add vote. If not, create record, then add vote -- [/!]--------------------------------------------------------------article_ratings.db:--------------------------------------------------------------ARTICLE
VOTE1VOTE2VOTE3VOTE4VOTE5--------------------------------------------------------------Thanks in advance,-Dan------------------------------------------------------------http://www.StrongGraphicDesign.com(208) 319-0137 | Toll-free p/f 877-561-1656-------------------------------------------------------------------------------------------------------------------------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:
OK, it's got to be something simple -- probably syntax related -- that is causing this logic to just plain not work. When I hit the submit button it goes to the page, but doesn't write to the ..db or anything...Can anybody see anything obvious that I am missing?FORM:----------------------------------------------------------------------------------------------------------------------------article_vote.html:--------------------------------------------------------------[!] -- ## Check to see if article record already exists in database -- [/!] [text show=f]exists=[lookup db=^article_ratings/article_ratings.db&lookinfield=ARTICLE&value=[thisArticle]&returnfield=[rating]¬Found=NOT_FOUND][/text][!] -- ## END Check to see if article record already exists in database -- [/!][!] -- ## If article already exists in database, then add vote. If not, create record, then add vote -- [/!] [showif [exists]=NOT_FOUND] [append db=^article_ratings/article_ratings.db][!] [/!]article=[thisArticle][!] [/!]vote1=0[!] [/!]vote2=0[!] [/!]vote3=0[!] [/!]vote4=0[!] [/!]vote5=0[!] [/!][/append] [math show=f]exists=0[/math] [/showif] [replace db=^article_ratings/article_ratings.db&eqARTICLEdata=[thisArticle]&[rating]type=num][!] [/!][rating]=[math][exists]+1[/math][!] [/!][/replace][!] -- ## END If article already exists in database, then add vote. If not, create record, then add vote -- [/!]--------------------------------------------------------------article_ratings.db:--------------------------------------------------------------ARTICLEVOTE1VOTE2VOTE3VOTE4VOTE5--------------------------------------------------------------Thanks in advance,-Dan------------------------------------------------------------http://www.StrongGraphicDesign.com(208) 319-0137 | Toll-free p/f 877-561-1656-------------------------------------------------------------------------------------------------------------------------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/
Dan Strong
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:
WebCatalog and Dreamweaver (1999)
Date Sorting (1997)
Sendmail & Spell Checker (2001)
ANother SHOWIF problem (1997)
minimalist shopping cart. (1997)
WC2.0 Memory Requirements (1997)
Re:2nd WebCatalog2 Feature Request (1996)
[WebDNA] Imagemagick (2018)
WebCat2b15MacPlugin - [protect] (1997)
ShowIf & HideIf Question? (1998)
A Sensible Suggestion. Was: Major problem (1999)
Country & Ship-to address & other fields ? (1997)
when is date system date or order date? (1997)
[input] [/input] (1997)
The word TYPE in search contexts and fields (1998)
Error Lob.db records error message not name (1997)
Related database (2000)
Public beta 5 of WebCatalog 4.0 is now available (2000)
Sku numbers (1997)
RSS Feeds; basic info (2005)