title: Insert With Date_Format Function Using PHP/MySQL
body: <p>My SQL statement using PHP doesn't insert the <code>date_format</code> MySQL function that I would like to use in order to show the current date-time in the format of "Friday, 12/20/2013 - 12:31 PM PST". Rather it inserts '0000-00-00 00:00:00'. Any help would be appreciated. Thanks in advance.</p>
  
  <pre><code>  $command = "insert into $table_name
                   values('','".$db-&gt;real_escape_string($_POST['name'])."',              
                   date_format(now(), '%W, %m/%d/%Y - %h:%i %p PST'),                      
                   '".$db-&gt;real_escape_string($_POST['entry'])."');";
  </code></pre>