PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hello everybody..
trying to add a number of days to the day1 variable to show the expired date but it's not working..
the example i followed: http://www.phpbuilder.com/columns/akent ... hp3?page=5
but it's doesn't seem to work.. can someone look at this code and let me know what i'm doing wrong.
how would this work with mysql database.. i have the time() saved as int. in the db..
I tried copy/pasted the results of time() as what you see below but it displayed aug. 2, 2003 insted of 15 day exp. date
i tried $timestamp = "1058529275"; to test and it didn't work.
current time stamp -->: 1057234186
current day -->: July 03 2003
expiry timestamp: 1058530186
expiry date: July 18 2003
The first timestamp is for todays date and the second for 15 days from today. You would get Aug 2 if you added 15 days to the second timestamp and '1058529275' is a version of the second timestamp.