i have a column that is a timestamp to store a date time. so i am inputting the time() result to save the value in to that column in database.
for example, result generated by time() = 1385714063 // a timestamp
echo time() //1385714063
I am adding 1385714063 (timestamp) and saving but it automatically converts 1385714063 in to 2013-11-14 00:00:00 which i dont understand how.
why i am not allowed to store the value as a timestamp(1385714063) or why is it doing the conversion is my question.
UPDATE 1
I tried, NOW() as explained in the first answer but it doesnt help me