I am using this code to minus 48 hours from a timestamp
echo date($result2["datetime"], strtotime("-48 hours"));
This works fine, i want to add 48 hours, i have tried:
echo date($result2["datetime"], strtotime("+48 hours"));
I have echoed $result2["datetime"];
which shows a timestamp in the format Y-m-d H:i:s
and when i use:
echo date('Y-m-d H:i:s', strtotime("+48 hours"));
that adds the 48 hours on fine too
When i use
echo date($result2["datetime"], strtotime("+48 hours"));
Its just echoing the same timestamp thats returned from $result2["datetime"];
and not +48 hours