database program

hi, I'm trying to create a program which takes a list of items and stores them in a database and alerts the user when a certain item in the database has been there for 30 days. I'm not sure how to keep track of the time which an item has been in this database.
Hi. A simple option is to add a 'Date Entered' for each item. You can then perform a check on all the items and list those where Date Entered is more than 30 days ago.
thats what I was thinking I could do but I wasnt sure how I could do the check....unless I have the person enter the current date every time the program runs?
You can get the current time (from the PC) using the ctime standard library, see http://www.cplusplus.com/reference/clibrary/ctime/ fro info.
Topic archived. No new replies allowed.