Gossamer Forum
Home : Products : DBMan : Customization :

Auto Delete Mod

Quote Reply
Auto Delete Mod
I get the following:

Comparing: '959400000' vs '01-May-2000' ...
Record(s) Deleted
Comparing: '959400000' vs '01-May-2000' ...
Record(s) Deleted
Comparing: '959400000' vs '01-May-2000' ...
Record(s) Deleted

when running the autodelete mod. All records are deleted, so it seems the my date set up is incorrect. Any ideas?

Thanks

Quote Reply
Re: Auto Delete Mod In reply to
You must have a debugging line included in your code.
That's why it's showing you those lines Smile

I think this is the line you would remove:

print "Comparing: '$today' vs '$values[$removeby_field]' ... \n";

Hope this helps

Quote Reply
Re: Auto Delete Mod In reply to
Hi, Lois. You're right, removing that line will take that out. Funny thing though, to get the script to run at all, I had to add ' "> ' to the first open DB line. Similar to the second open DB line.

Don't know what that does, but it works ok as far as I can tell.

Thanks,
Spike

Quote Reply
Re: Auto Delete Mod In reply to
I had the change backwards - it should have read ' "< ' with the "less than" symbol.

Quote Reply
Re: Auto Delete Mod In reply to
In Reply To:
Don't know what that does, but it works ok as far as I can tell.
It compares Today's Date (Unix values) and Removeby days.

Regards,

Eliot Lee