It drives me crazy. I was looking for him in between, but I cannot come to a conclusion.
I have a date field in my database. Which I get the values ββwith the date function is just fine.
The problem is that I did this a while ago, and I donβt remember how I inserted these values ββinto this field. this is an integer value (in accordance with what I read, the number of seconds since January 1, 1970, for example 1338949763. but when I try to insert material, for example using INSERT INTO entries (date) VALUES (NOW()). The thing NOWwill store a formatted date, for example 2012-04-12 23:09:54I do not want this. I want to save integer value. How to do this?
source
share