Forum Moderators: coopster
I'm using the following code in a hidden value in dreamweaver:
<?php echo date('Y-m-d');?> and want to add 90 days to the value before inserting into mysql db.. What should I add to the code to do this?
Basically, I'm giving a 90 free trial and want to set the renewal date to 90 days from today in the db.
Thanks,
Steve
The strtotime [uk2.php.net] function should be ideal for what you are looking for:
<?php echo date('Y-m-d', strtotime("+90 days"));?>
dc