You will need to add the seconds that are in 3 days to the current timestamp....
Try the following: $RegisterDate=date("m/d/y", time()); $ExpireDate=date("m/d/y", time()+4320); "Raheel Hussain" <[EMAIL PROTECTED]> wrote in message news:20021030110432.9579.qmail@;web21202.mail.yahoo.com... > > hi, I m a newbie programmer, may b solve to this prob. is a cheap thing, but i cant get solution of it. > > i have two variables > $RegisterDate, and $ExpireDate > > what I want to do is the the $RegisterDate will be taken from the system. > but the $ExpireDate will be three days after the $RegisterDate, > > i m doing this in the following way, but having problems, i cant find the way to increment the data for after three days > > $RegisterDate=date("m/d/y"); > $ExpireDate=$RegisterDate + 3 //creating problem, > > if the register date is 10/29/01 then the expire date should be 11/2/02. > > plz help > > > > --------------------------------- > Do you Yahoo!? > HotJobs - Search new jobs daily now -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php