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!
Moderator: General Moderators
Mr. Tech
Forum Contributor
Posts: 205 Joined: Tue Feb 11, 2003 4:18 pm
Location: Australia
Post
by Mr. Tech » Wed Apr 09, 2003 7:12 pm
Hi!
I have this product where it says:
Buy in the before (Date is shown here) and get a discount.
I want to replace (Date is shown here) with the date in 7 days time. So if it was the 7th that day, it would show the 14th.
I just can't work it out.
Any ideas?
Mr. Tech
Forum Contributor
Posts: 205 Joined: Tue Feb 11, 2003 4:18 pm
Location: Australia
Post
by Mr. Tech » Wed Apr 09, 2003 7:14 pm
Worked it out:
$days = 7*24*60*60;
$time = $now + $days;
$time = date('l jS F', $time);
echo "$time";