Sorry i'm very new to php and I think this might be a very basic question.
I'm trying to add 24 hours to the current time and save it in a mysql database.
$time1 = time () + 24 * 60 * 60;
At the moment im just gettin a series of 0s when I save to the database
The column im trying to save it in, is of datatype "timestamp".
So I think i need to convert the value stored in $time1 to a timestamp format?
Can anyone suggest if I'm going about this in the right way? and if I am how do I go about making the conversion.
If anyone has any suggestions it would be a massive help.