Re: [showif] and equality

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19875
interpreted = N
texte = John: Set the date [math] on the form page and give it a input NAME=ANYNAME and then do the [showif] on the result page with the date math figured.To figure the Time less 10 minutes use this code: [math time]{[time]}-{00:10:00}[/math]I tested your time math code I didn't get any results and you may have better luck with this code and do it the way you wanted to:[showif [time]<[math time]{[time]}-{00:10:00}[/math]]Hello John![/showif]Also remember you may not get any results if your not SHOWING anything and that's why I put in the Hello John! between the show if.You may have to replace the [time] right after the [showif with the name of your time field in your database. ie:[showif [YOURtimeFIELDnameHERE]<[math time]{[time]}-{00:10:00}[/math]]Hello John![/showif]Good Luck,B.Harrington searchmaster@databot.com http://databot.com Jay Van Vark wrote: > > Why not do it in the search params... Treat the field as type date and do a > great than comparison... > > >I'm having a small problem with the following code: > > > >[showif ([math time]({[time]} - {[t]})[/math]) < [math > >time]{00:10:00}[/math]] > >[/showif] > > > >What I want to do is have a list from a database of records whose last > >update was within the last ten minutes. Is this code even possible? > > > >Thanks, > >John > > Jay Van Vark ******************************* > Pacific Coast Software | eCommerce (WebCatalog) > 11770 Bernardo Plaza Court | Site Hosting & Development > Suite 453 | http://www.smithmicro.com > San Diego, CA 92128 ******************************* > 619.675.1106 > > ** PGP key available upon request. ** Associated Messages, from the most recent to the oldest:

    
  1. Re: [showif] and equality (PCS Technical Support 1998)
  2. Re:[showif] and equality (Jay Van Vark 1998)
  3. Re: [showif] and equality (Kenneth Grome 1998)
  4. [showif] and equality (John Winningham 1998)
  5. Re: [showif] and equality (searchmaster@databot.com 1998)
John: Set the date [math] on the form page and give it a input NAME=ANYNAME and then do the [showif] on the result page with the date math figured.To figure the Time less 10 minutes use this code: [math time]{[time]}-{00:10:00}[/math]I tested your time math code I didn't get any results and you may have better luck with this code and do it the way you wanted to:[showif [time]<[math time]{[time]}-{00:10:00}[/math]]Hello John![/showif]Also remember you may not get any results if your not SHOWING anything and that's why I put in the Hello John! between the show if.You may have to replace the [time] right after the [showif with the name of your time field in your database. ie:[showif [YOURtimeFIELDnameHERE]<[math time]{[time]}-{00:10:00}[/math]]Hello John![/showif]Good Luck,B.Harrington searchmaster@databot.com http://databot.com Jay Van Vark wrote: > > Why not do it in the search params... Treat the field as type date and do a > great than comparison... > > >I'm having a small problem with the following code: > > > >[showif ([math time]({[time]} - {[t]})[/math]) < [math > >time]{00:10:00}[/math]] > >[/showif] > > > >What I want to do is have a list from a database of records whose last > >update was within the last ten minutes. Is this code even possible? > > > >Thanks, > >John > > Jay Van Vark ******************************* > Pacific Coast Software | eCommerce (WebCatalog) > 11770 Bernardo Plaza Court | Site Hosting & Development > Suite 453 | http://www.smithmicro.com > San Diego, CA 92128 ******************************* > 619.675.1106 > > ** PGP key available upon request. ** searchmaster@databot.com

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:

Suffix or Line? (1999) WebCat B13 Mac CGI -- Frames question (1997) Creating 404 Not Found pages (1999) Something Simple (1998) [tcpsend] (2001) absolute paths for databases? (1997) includes and cart numbers (1997) Help!!!! (1997) Unexpected error (1997) OT: RAID Options (2004) Question about replacing words (1998) WebCatalog can't find database (1997) migrating from MacOS to unix (2000) [SHOWIF AND/OR] (1997) Search results problem (2003) Just Testing (1997) [shell] (2002) Quick Data sorting questions (2002) Formatting dates stored in db (2003) Re[3]: Re[3]: Problem with new formvariables (2000)