Hi - I found a record on the FAQ board (#468) about having an expiration date field (admin only) in my database that would take the date field and add any number of days to it (most likely 365 days) and input that new date into the expiration date field. Well when I go to add a record, it keeps showing the current date in the expiration date field as well as the current date field. Same thing when I view the record after I add it. I tried to figure it out per the FAQ record, but it isnt working for me, so im hoping that someone can possibly tell me where I have gone wrong.
I've only made changes to 3 subs in the db.cgi record...which are the add_record, get_date and added the new calc_date subs, but it must be set up wrong. Here is the text file of those 3 subs if someone could please take a look and let me know if they see anything wrong. Thanks and Happy Holidays!!
http://www.wdu.net/dbtext.txt
I've only made changes to 3 subs in the db.cgi record...which are the add_record, get_date and added the new calc_date subs, but it must be set up wrong. Here is the text file of those 3 subs if someone could please take a look and let me know if they see anything wrong. Thanks and Happy Holidays!!
http://www.wdu.net/dbtext.txt