title: insert current timestamp into mysql with php?
body: <p>This is driving me crazy. I've searched it on interent but can't get to a conclusion.</p>
  
  <p>I have a date field in my database. Which I'm retrieving values with date function just fine.</p>
  
  <p>Problem is I did it some time ago, and I don't remember how I inserted those values into that field. it's an integer value (according to what I read, the number of seconds since jan 1st 1970, for example 1338949763. but when I try inserting stuff, like using <code>INSERT INTO entries (date) VALUES (NOW())</code> . The <code>NOW</code> thing will store a formatted date, like <code>2012-04-12 23:09:54</code>. I don't want that. I want to store the integer value. how do I do that?</p>