Re: MATH TIME
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14833
interpreted = N
texte = >I'm trying to display users logged in in last 10 minutes.>The code looks like:>[search db=users1.tab&eqdatedata=[date]]>[showif [time]>[math time]{[time]}-{00:10:00}[/math]]>[founditems]>
*[user]>[/founditems]>[/showif]>[/search]>It does not work. Somehow it shows all users logged at the same date>What is wrong?You have the [showif] *outside* the founditems, not *inside*, so the showif is not using any of the fields from the founditems loop.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>I'm trying to display users logged in in last 10 minutes.>The code looks like:>[search db=users1.tab&eqdatedata=
[date]]>[showif
[time]>[math time]{
[time]}-{00:10:00}[/math]]>
[founditems]>
*[user]>[/founditems]>[/showif]>[/search]>It does not work. Somehow it shows all users logged at the same date>What is wrong?You have the
[showif] *outside* the founditems, not *inside*, so the showif is not using any of the fields from the founditems loop.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Grant Hulbert
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:
[FoundItems] solved - thanks (1997)
WebCatalog can't find database (1997)
WebCat2b12--[searchstring] bug (1997)
WebCat hosting sites? (1998)
Web DNA... (2007)
Generating Report Totals (1997)
DOS variable bug (was SandBox and ImageMagick) (2003)
WebDNA for Dummies (2004)
Um. silly question perhaps...but I don't know, so I'm askin'.. (2001)
Navigator 4.0 & tables (1997)
Nested vs conditional (1997)
WebCatalog for guestbook ? (1997)
WebCat2b12 - nesting [tags] (1997)
WildWEBCAT98 Winners! (1999)
Plugin or CGI or both (1997)
strange problem listfiles and movefile (2000)
Listserver problem (1997)
WebDNA Mail issues (2002)
WebCat editing, SiteGuard & SiteEdit (1997)
Clickable Maps (1996)