title: Datetime NOW PHP mysql (+ PDO variant)
body: <p>Thanks for looking. All helpful answers/comments are up voted. </p>
  
  <p>In php, you can use NOW() like this:</p>
  
  <pre><code>mysql_query("INSERT INTO tablename (id,      value,      time_created) 
                              VALUES ('{$id}', '{$value}', NOW())");
  </code></pre>
  
  <p>How can I do the same thing in PDO. When I bind like this, I get an error: </p>
  
  <pre><code>$stmt-&gt;bindParam(':time_added', NOW(), PDO::PARAM_STR);
  </code></pre>
  
  <p><strong>Is it the PDO:PARAM_STR?</strong></p>