I would like to update data in the database after a period of time has gone by.
For example, I have an item i wish to auction on my site for 7 days. After 7 days has gone, the item does not show on the site.
But I still want the data to be in the database, so the function should allow me to update the data on any value within the database table that I choose. This way if I decide to put the item back on again for the same period or longer, I can do so.
If any one out there can help me start this function I would be ever so greatful. I can't seem to find any tutorials that will help me on this.
The only code that I have that will let me select how many days I want the item on my site is this:
Maybe it's just my old-school soul talking, but I’ve always felt that games aren't 'real' games until they hit the PC. Leaving the PC community out at launch just doesn't sit right with me.
That being said, I'm probably going to buy the PS5 just for the fun of trying it out.
Recent Achievements
Huge Trailer earned a badge Week One Done
Classifyskilleducation earned a badge Week One Done
Question
seb86
I would like to update data in the database after a period of time has gone by.
For example, I have an item i wish to auction on my site for 7 days. After 7 days has gone, the item does not show on the site.
But I still want the data to be in the database, so the function should allow me to update the data on any value within the database table that I choose. This way if I decide to put the item back on again for the same period or longer, I can do so.
If any one out there can help me start this function I would be ever so greatful. I can't seem to find any tutorials that will help me on this.
The only code that I have that will let me select how many days I want the item on my site is this:
I still need a function that will tell the website that this item can no longer be displayed.
If any one can help me on this, I would appreciate very much.
I will look forward in your replies.
Thank you.
Link to comment
https://www.neowin.net/forum/topic/783918-php-mysql-update-data-in-the-database-after-a-period-of-time/Share on other sites
7 answers to this question
Recommended Posts