Re: Date problem still...
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56099
interpreted = N
texte = Do you have your 'Read Date Format' Pref set to 'Day/Month/Year (European)'?-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf OfAlan WhiteSent: Friday, February 13, 2004 8:56 AMTo: WebDNA TalkSubject: Date problem still...Hello again,After the discussion that has just taken place I am going to write a fullquestion and see if I get a full answer :DMy date thing still isn't working and I will post the exact code that I amusing so you can see what I am doing.Before I start I will tell you that my date prefs are set to :%d%m%YCentury break is set to : 00the page I am trying to work with is as follows http://www.hanon-shop.com(please follow the link to newsletter to get all the perams)The link should pass the variable [mth] to the news letter and then thenewsletter page calls 2 includes onto the page.a) mth.incb) display_mths.incI will show you and extract from mth.inc like I have done before but I willshow you for the first 3 mths so you get how I have done it...------------------------------| [searchdb=directory/directory/database.dbnews.db&rnnewsDatedatarq=01/01/0431/01/04&newsDatetype=date][if [numfound]>0][then]
JAN |[/then][else] JAN |[/else][/if][/search][search db=directory/directory/database.db&rnnewsDatedatarq=01/02/0429/02/04&newsDatetype=date][if [numfound]>0][then]
FEB |[/then][else] FEB |[/else][/if][/search][search db=directory/directory/database.db&rnnewsDatedatarq=01/03/0431/03/04&newsDatetype=date][if [numfound]>0][then]
MAR |[/then][else] MAR |[/else][/if][/search]This is what makes up the month navigation bar and the idea is that it willonly show a link to that month if there is information available. Thedefault month is specified from the link on our home pages and othernavigation menus.The second piece of code I am going to show you is from the display_mths.incwhich is what makes up the different items on the newsletter based upon the[mth] variable passed from the menu shown in the previous snippet. I haveremoved the formatting from the html portion for ease of display for thebenefit of those helping...------------------------------ [showif [mth]=jan][text]searchterm=rnnewsDatedatarq=01/01/0431/01/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=feb][text]searchterm=rnnewsDatedatarq=01/02/0429/02/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=mar][text]searchterm=rnnewsDatedatarq=01/03/0431/03/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=apr][text]searchterm=rnnewsDatedatarq=01/04/0430/04/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=may][text]searchterm=rnnewsDatedatarq=01/05/0431/05/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=jun][text]searchterm=rnnewsDatedatarq=01/06/0430/06/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=jul][text]searchterm=rnnewsDatedatarq=01/07/0431/07/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=aug][text]searchterm=rnnewsDatedatarq=01/08/0431/08/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=sep][text]searchterm=rnnewsDatedatarq=01/09/0430/09/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=oct][text]searchterm=rnnewsDatedatarq=01/10/0431/10/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=nov][text]searchterm=rnnewsDatedatarq=01/11/0430/11/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=dec][text]searchterm=rnnewsDatedatarq=01/12/0431/12/04&newsDatetype=date&denewsDatesort=1[/text][/showif][search db=newsletter/db_s/news.db&[searchterm]][founditems][newsDate][Title][convertchars][Blurb][/convertchars][hideif [image1]=]
![](newsletter/pics/[image1])
[/hideif][hideif [image2]=]
![](newsletter/pics/[image2])
[/hideif][/founditems][/search]-----------------------------------My problem is that this *exact* code was running before out crash incidentthe other day, the code still runs now, the difference being that the year03 is being looked up but 04 is not recognised. The code is working for OCTand NOV 03 but not for JAN FEB this year.In theory according to the code above, this should not be possible.Now if there are flaws in my coding style I am aware that I am still arelative newbie and I welcome any advice as to coding practices etc(especially fusebox if anyone want to contact me off list) but all I want toreslove just now is why this is not working because it was...Hope you can help and if you need any further clarification then please feelfree to ask me any questions about it.Thanks in advance and I apologise for repeating my problem I just wantanswers goddamit!!!Thanks to all who have helped so far...Alan-------------------------------------------------------------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 toWeb 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:
Do you have your 'Read Date Format' Pref set to 'Day/Month/Year (European)'?-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf OfAlan WhiteSent: Friday, February 13, 2004 8:56 AMTo: WebDNA TalkSubject: Date problem still...Hello again,After the discussion that has just taken place I am going to write a fullquestion and see if I get a full answer :DMy date thing still isn't working and I will post the exact code that I amusing so you can see what I am doing.Before I start I will tell you that my date prefs are set to :%d%m%YCentury break is set to : 00the page I am trying to work with is as follows http://www.hanon-shop.com(please follow the link to newsletter to get all the perams)The link should pass the variable [mth] to the news letter and then thenewsletter page calls 2 includes onto the page.a) mth.incb) display_mths.incI will show you and extract from mth.inc like I have done before but I willshow you for the first 3 mths so you get how I have done it...------------------------------| [searchdb=directory/directory/database.dbnews.db&rnnewsDatedatarq=01/01/0431/01/04&newsDatetype=date][if [numfound]>0][then][cart]&RA=[random]">JAN |[/then][else] JAN |[/else][/if][/search][search db=directory/directory/database.db&rnnewsDatedatarq=01/02/0429/02/04&newsDatetype=date][if [numfound]>0][then][cart]&RA=[random]">FEB |[/then][else] FEB |[/else][/if][/search][search db=directory/directory/database.db&rnnewsDatedatarq=01/03/0431/03/04&newsDatetype=date][if [numfound]>0][then][cart]&RA=[random]">MAR |[/then][else] MAR |[/else][/if][/search]This is what makes up the month navigation bar and the idea is that it willonly show a link to that month if there is information available. Thedefault month is specified from the link on our home pages and othernavigation menus.The second piece of code I am going to show you is from the display_mths.incwhich is what makes up the different items on the newsletter based upon the[mth] variable passed from the menu shown in the previous snippet. I haveremoved the formatting from the html portion for ease of display for thebenefit of those helping...------------------------------ [showif [mth]=jan][text]searchterm=rnnewsDatedatarq=01/01/0431/01/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=feb][text]searchterm=rnnewsDatedatarq=01/02/0429/02/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=mar][text]searchterm=rnnewsDatedatarq=01/03/0431/03/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=apr][text]searchterm=rnnewsDatedatarq=01/04/0430/04/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=may][text]searchterm=rnnewsDatedatarq=01/05/0431/05/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=jun][text]searchterm=rnnewsDatedatarq=01/06/0430/06/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=jul][text]searchterm=rnnewsDatedatarq=01/07/0431/07/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=aug][text]searchterm=rnnewsDatedatarq=01/08/0431/08/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=sep][text]searchterm=rnnewsDatedatarq=01/09/0430/09/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=oct][text]searchterm=rnnewsDatedatarq=01/10/0431/10/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=nov][text]searchterm=rnnewsDatedatarq=01/11/0430/11/04&newsDatetype=date&denewsDatesort=1[/text][/showif] [showif [mth]=dec][text]searchterm=rnnewsDatedatarq=01/12/0431/12/04&newsDatetype=date&denewsDatesort=1[/text][/showif][search db=newsletter/db_s/news.db&[searchterm]][founditems][newsDate][Title][convertchars][Blurb][/convertchars][hideif [image1]=]
[/hideif][hideif [image2]=]
[/hideif][/founditems][/search]-----------------------------------My problem is that this *exact* code was running before out crash incidentthe other day, the code still runs now, the difference being that the year03 is being looked up but 04 is not recognised. The code is working for OCTand NOV 03 but not for JAN FEB this year.In theory according to the code above, this should not be possible.Now if there are flaws in my coding style I am aware that I am still arelative newbie and I welcome any advice as to coding practices etc(especially fusebox if anyone want to contact me off list) but all I want toreslove just now is why this is not working because it was...Hope you can help and if you need any further clarification then please feelfree to ask me any questions about it.Thanks in advance and I apologise for repeating my problem I just wantanswers goddamit!!!Thanks to all who have helped so far...Alan-------------------------------------------------------------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 toWeb 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/
"Scott Anderson"
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:
2.0 Info (1997)
weird convertchars behavior (2000)
Live Webcasts (1999)
$append (1998)
[isfile] ? (1997)
real beginner stumped (2000)
Something wrong with this list? (2006)
WebTV (1998)
[WebDNA] Competitors! (2008)
shipcost (1997)
SQL (2003)
Purchase Plugin Missing (1996)
Hosting Services (1999)
[WebDNA] Cacheing include files (2015)
passing large amount of text in post form (2005)
Works! (1997)
Calendar Snippet Problems (1998)
[OT] "&" char in Flash animation (2006)
The force has left me. (2002)
Odd search results, or odd programmer, not sure which... (2002)