title: MySQL -PHP insert DATETIME
body: <p>can anyone please guide me on How to insert a DATETIME filed from iphone through PHP script into MySQL database.</p>
  
  <pre><code>$dates = date('Y-m-d H:i:s','2010-10-12 15:09:00');
  
  $query = "INSERT INTO timeTable(time) VALUES ('$dates')";
  </code></pre>
  
  <p>Thank you..</p>