Page 1 of 1

data problem in php?

Posted: Sat Mar 06, 2010 4:48 am
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

Re: data problem in php?

Posted: Sat Mar 06, 2010 5:00 am
by pbs
Refer this URL http://php.net/manual/en/function.date.php

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