Re: Date stamp and purging
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17788
interpreted = N
texte = When the ad is placed, encode today's date + 90 days in a field and call it[expiredate]. Then just set up a template that deletes any of those recordsthat have an [expiredate] field that is older than today's date, and hit thetemplate every few days. Around the end of August, the oldest records willbegin to be deleted. Ken Grome posted some real useful date formattingguidelines a few days ago; you might weant to search the archives for that. Allan Morrison wrote:> > I'm setting up a classified ad site, and I'd like to have ads older than> 90 days purged automatically. How would I go about setting up something> like this.> > Allan Morrison> WebMaster> www.majestictech.com-- Gil Poulsen, Webmaster*************************************************************** AltiM@c * Phone: (732) 469-2567 ** 429 St. Giles Court * FAX: (732) 469-5823 ** Somerset, NJ * e-mail: help@altimac.com ** 08873 * WWW: http://www.altimac.com ***************************************************************
Associated Messages, from the most recent to the oldest:
When the ad is placed, encode today's date + 90 days in a field and call it[expiredate]. Then just set up a template that deletes any of those recordsthat have an [expiredate] field that is older than today's date, and hit thetemplate every few days. Around the end of August, the oldest records willbegin to be deleted. Ken Grome posted some real useful date formattingguidelines a few days ago; you might weant to search the archives for that. Allan Morrison wrote:> > I'm setting up a classified ad site, and I'd like to have ads older than> 90 days purged automatically. How would I go about setting up something> like this.> > Allan Morrison> WebMaster> www.majestictech.com-- Gil Poulsen, Webmaster*************************************************************** AltiM@c * Phone: (732) 469-2567 ** 429 St. Giles Court * FAX: (732) 469-5823 ** Somerset, NJ * e-mail: help@altimac.com ** 08873 * WWW: http://www.altimac.com ***************************************************************
Gil Poulsen
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:
[WebDNA] Order that emailer sends emails? (2009)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
Moment of Thanks (1997)
Max Record length restated as maybe bug (1997)
WebCat2b12 - nesting [tags] (1997)
Thanks ! (1997)
404s - Apache vs. WebDNA (2008)
Help Encrypt/Decrypt eMail (2003)
FoundItems and punctuation (2000)
RE: [WebDNA] LowRam (2012)
Finding max value for a field (1997)
RE: IIS4b2 and WebCatalog b19 (1997)
form data submission gets truncated (1997)
2.0 Info (1997)
WebCat2.0 [format thousands .0f] no go (1997)
flushdatabases (1997)
founditems (2000)
Still having install problems (2000)
Netiquette: how to get the most out of this list (1999)
Test again - Am I seeing double? (2003)