Add 1 hour on mysql timestamp in php

php

Solution

echo date("d-m-Y H:i:s", strtotime($row['data'])+3600);

note that you can't compare resulting dates in "d-m-Y" format.

either compare `strtotime` results or initial dates. or format your results into proper format first.

Problem

In my Mysql table I have a timestamp field. In my php page I show the record ($row[data]) in this way ``` echo date("d-m-Y H:i:s", strtotime($row['data'])); ``` Now in my php I'd like to add 1 hour on my date. How can I do this? Thanks

Original source