Re: [TIME] not working
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 68767
interpreted = N
texte = I don't see any error jumping out at me right now.Try exposing your code in the browser and wee what's actually being produced.Example:append db=login.db]SKULOG=[url][SKUvar][/url]&USERNAMEa=[url][USERNAMEa][/url]&PASSWORDa=[url][PASSWORDa][/url]&LEVEL=[url][LEVEL][/url]&DATE_ENTERED=[DATE]&ENTERED_TIME=[TIME]&ADMIN_USER=[url][ADMIN_USER][/url]/append
[append db=login.db]SKULOG=[url][SKUvar][/url]&USERNAMEa=[url][USERNAMEa][/url]&PASSWORDa=[url][PASSWORDa][/url]&LEVEL=[url][LEVEL][/url]&DATE_ENTERED=[DATE]&ENTERED_TIME=[TIME]&ADMIN_USER=[url][ADMIN_USER][/url][/append] You see in the 2 lines above, the first line I have removed the brackets from the append at the beginning and end. This will show me what's being added to the database. It might be something else causing your append time to break.Additionally, my college professor told me (a very long time ago) never to use real words as variables, or at the beginning of variable names, or as part of a variable name if after a special character. His reasoning was because you never really know if the database interpreter will accidentally mis identify your variables. I have taken his philosophy to heart and it has saved me many many times. (IMO) In your example above I would have had variable USRNAMEA, PASSWD, ENTERED_DT, ENTERED_TM and ADM_USRMatthew Perosisbraun wrote:> Hi Folks,>> I'm having a slight problem.> When I execute an [append] tag, [TIME] does not work.> When I execute a [replace] tag, [TIME] will work.> In the line 'The real time is: [TIME]', [TIME] will work.>> Here is my code, Does anyone see what I'm doing wrong?>> Thanks much,> sfb>>>>>> in file #1: ( &ENTERED_TIME=[TIME] is not working)>>> The real time is: [TIME]> [append db=login.db]SKULOG=[url][SKUvar][/url]&USERNAMEa=[url] > [USERNAMEa][/url]&PASSWORDa=[url][PASSWORDa][/url]&LEVEL=[url][LEVEL] > [/url]&DATE_ENTERED=[DATE]&ENTERED_TIME=[TIME]&ADMIN_USER=[url] > [ADMIN_USER][/url][/append]>>>>>> in file #2: ( &ENTERED_TIME=[TIME] is working)>> [replace db=login.db&eqSKULOGdatarq=[SKULOG]]SKULOG=[url][SKULOG][/ > url]&USERNAMEa=[url][USERNAMEa][/url]&PASSWORDa=[url][PASSWORDa][/url] > &LEVEL=[url][LEVEL][/url]&ADMIN_USER=[url][ADMIN_USER][/url]&MOD_DATE= > [DATE]&MOD_TIME=[TIME][/replace]>>>> -------------------------------------------------------------> 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/>>-- Matthew A PerosiPsi Prime, Inc.http://www.psiprime.com323 Union Blvd.Totowa, NJ 07512P: 973.225.9870F: 973.413.8217-------------------------------------------------------------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:
I don't see any error jumping out at me right now.Try exposing your code in the browser and wee what's actually being produced.Example:append db=login.db]SKULOG=[url][SKUvar][/url]&USERNAMEa=[url][USERNAMEa][/url]&PASSWORDa=[url][PASSWORDa][/url]&LEVEL=[url][LEVEL][/url]&DATE_ENTERED=[date]&ENTERED_TIME=[time]&ADMIN_USER=[url][ADMIN_USER][/url]/append
[append db=login.db]SKULOG=[url][SKUvar][/url]&USERNAMEa=[url][USERNAMEa][/url]&PASSWORDa=[url][PASSWORDa][/url]&LEVEL=[url][LEVEL][/url]&DATE_ENTERED=[date]&ENTERED_TIME=[time]&ADMIN_USER=[url][ADMIN_USER][/url][/append] You see in the 2 lines above, the first line I have removed the brackets from the append at the beginning and end. This will show me what's being added to the database. It might be something else causing your append time to break.Additionally, my college professor told me (a very long time ago) never to use real words as variables, or at the beginning of variable names, or as part of a variable name if after a special character. His reasoning was because you never really know if the database interpreter will accidentally mis identify your variables. I have taken his philosophy to heart and it has saved me many many times. (IMO) In your example above I would have had variable USRNAMEA, PASSWD, ENTERED_DT, ENTERED_TM and ADM_USRMatthew Perosisbraun wrote:> Hi Folks,>> I'm having a slight problem.> When I execute an [append] tag, [time] does not work.> When I execute a [replace] tag, [time] will work.> In the line 'The real time is: [time]', [time] will work.>> Here is my code, Does anyone see what I'm doing wrong?>> Thanks much,> sfb>>>>>> in file #1: ( &ENTERED_TIME=[time] is not working)>>> The real time is: [time]> [append db=login.db]SKULOG=[url][SKUvar][/url]&USERNAMEa=[url] > [USERNAMEa][/url]&PASSWORDa=[url][PASSWORDa][/url]&LEVEL=[url][LEVEL] > [/url]&DATE_ENTERED=[date]&ENTERED_TIME=[time]&ADMIN_USER=[url] > [ADMIN_USER][/url][/append]>>>>>> in file #2: ( &ENTERED_TIME=[time] is working)>> [replace db=login.db&eqSKULOGdatarq=[SKULOG]]SKULOG=[url][SKULOG][/ > url]&USERNAMEa=[url][USERNAMEa][/url]&PASSWORDa=[url][PASSWORDa][/url] > &LEVEL=[url][LEVEL][/url]&ADMIN_USER=[url][ADMIN_USER][/url]&MOD_DATE= > [date]&MOD_TIME=[time][/replace]>>>> -------------------------------------------------------------> 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/>>-- Matthew A PerosiPsi Prime, Inc.http://www.psiprime.com323 Union Blvd.Totowa, NJ 07512P: 973.225.9870F: 973.413.8217-------------------------------------------------------------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/
Matthew A Perosi
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:
[BULK] Fwd: [WebDNA] [BULK] WebDNA discovery in the Console - [having many crashes] (2011)
Urgent Help needed (1998)
off-topic - printinglib 68K (1997)
Newbie problem blah blah blah (1997)
$append (1998)
Anyone using Verisign's Payflow Link for payment processing? (2000)
Setting up shop (1997)
I've been thinking (2002)
Emailer Problem (1998)
Unzip (2005)
WC2b15 File Corruption (1997)
RE: protect tag on NT (1997)
[WebDNA] png support in webDNA (2011)
URGENT: WebDNA Server Not Running (2003)
OH MY GOD! (1998)
Sandbox CPU Usage Issue (2005)
Execute Applescript (1997)
Safari browser and WebDNA set-cookies (2003)
search zip codes ranges (2003)
WebCat2: Items xx to xx shown, etc. (1997)