data problem in php?

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

Post Reply
adilmarwat2004
Forum Commoner
Posts: 44
Joined: Fri Sep 04, 2009 11:28 pm

data problem in php?

Post by adilmarwat2004 »

I have mysql table name info contain field "date_retire(date)"

I enter the query as "UPDATE info SET date_retire = date_retire + 00600000"

means that I have to add 60 years with date_retire field.

which gives result like that 01-01-2070 if it was 01-01-2010.

But when I display the date_retire field on php page it gives 01-01-1970 instead of 01-01-2070.

How I solve the problem, please help me.

Adil
pbs
Forum Contributor
Posts: 230
Joined: Fri Nov 07, 2008 5:31 am
Location: Nashik, India
Contact:

Re: data problem in php?

Post by pbs »

Refer this URL http://php.net/manual/en/function.date.php

And read "Changelog" section, this may be the problem.
Post Reply