christophe Posted January 22, 2007 Share Posted January 22, 2007 Hi therebefore i begin ill explain what i am doing,I register domain names for people and businesses i know.I have a form which allows me to put in the domain name and the day the domain name has to be renewed.So what i need is to get this renewal date from the database and take away 30 days. So I know 30 days in advance that the name has to be renewed.Could someone point me in the right directionAny help will be much appreciatedThanksAlex Link to comment https://forums.phpfreaks.com/topic/35242-the-date-and-mysql/ Share on other sites More sharing options...
Jessica Posted January 22, 2007 Share Posted January 22, 2007 [code]<?php$thirtyDays = 60*60*24*30;//If your date is stored as integer timestamp$renewal = $date-$thirtyDays;//If it's DATE/DATETIME$renewal = strtotime($date)-$thirtyDays;?>[/code] Link to comment https://forums.phpfreaks.com/topic/35242-the-date-and-mysql/#findComment-166471 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.