SetHeader not Working
This WebDNA talk-list message is from 2006
It keeps the original formatting.
numero = 67436
interpreted = N
texte = I want to wipe the credit card information from orderfiles older than 30days. I'm using listfiles on my orders folder and adding each to a temp db.Then, I search the temp db to find orders over 30 days old. Finally, I usesetheader to remove the CC info.When I run the script below, the date in the orderfile is changed to today,and the CC info is not altered. Anyone see a problem with the code?MacOS X 10.4.6 | WebDNA 6.0a[delete db=admin/orders-tmp.db&neIDdata=find_all][listfiles products/Orders/] [orderfile file=products/Orders/[filename]] [append db=admin/orders-tmp.db]ID=[filename]&THEDATE=[date][/append] [/orderfile][/listfiles][search db=admin/orders-tmp.db&lsTHEDATEdatarq=[mathdate]{[date]}-{00/30/0000}[/math]&THEDATEsort=1&THEDATEtype=date] [founditems] [THEDATE]|[ID]
[setheader file=products/Orders/[ID]]date=[THEDATE]&acccountNum=&expMonth=&expYear=[/setheader] [/founditems][/search]-------------------------------------------------------------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 want to wipe the credit card information from orderfiles older than 30days. I'm using listfiles on my orders folder and adding each to a temp db.Then, I search the temp db to find orders over 30 days old. Finally, I usesetheader to remove the CC info.When I run the script below, the date in the orderfile is changed to today,and the CC info is not altered. Anyone see a problem with the code?MacOS X 10.4.6 | WebDNA 6.0a[delete db=admin/orders-tmp.db&neIDdata=find_all][listfiles products/Orders/] [orderfile file=products/Orders/[filename]] [append db=admin/orders-tmp.db]ID=[filename]&THEDATE=[date][/append] [/orderfile][/listfiles][search db=admin/orders-tmp.db&lsTHEDATEdatarq=[mathdate]{[date]}-{00/30/0000}[/math]&THEDATEsort=1&THEDATEtype=date] [founditems] [THEDATE]|[ID]
[setheader file=products/Orders/[ID]]date=[THEDATE]&acccountNum=&expMonth=&expYear=[/setheader] [/founditems][/search]-------------------------------------------------------------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/
Clint Davis
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 5.0 freeBSD?!!? (2003)
migrating from MacOS to unix (2000)
Blank orders after update to 5.1 (2003)
OS X Problem... (2000)
SQL - Output into file (2004)
WebCat chatroom/hyperboard (1997)
Attention all list readers (1997)
shipping costs (1998)
Don't know if this is a sily question... (2003)
retain raw [cart] submitted value (2004)
Webcat causing crashes left and right! (1997)
Programmers.org (2004)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
New Guestbook Source (1997)
WebMerchant 1.6 and https (1997)
[quantity] quantity[lineindex] (2000)
[date format] w/in sendmail (1997)
SQL, ODBC and MySql (2002)
Search (1997)
SSL do I need it?? (1998)