title: How do I have date and time form submitted in SQL database?
body: <pre><code>$sql="INSERT INTO Persons (Name, Email, Telephone, PensionPot, BestTime)
  VALUES
     ('$_POST[Name]','$_POST[Email]','$_POST[Telephone]','$_POST[PensionPot]','$_POST[BestTime]'    )";
  
  if (!mysqli_query($con,$sql))
  {
  die('Error: ' . mysqli_error($con));
  }
  
      ?&gt;
  </code></pre>
  
  <p>The code above is a form which submits to an sql database however in the database I want to be able to see the date and time the form was submitted? How would I do this?</p>