title: I am getting this error Error: Incorrect time value: '16:44:09 PM' for column 'time' at row 1 and I'm not sure why
body: <p>This is my php code i am running.
  In my server i have a time variable set up to take in time.   </p>
  
  <pre><code>$time = date('H:i:s A', time());
  $query = "INSERT INTO shouts (user, message, time)
  VALUES('$user', '$message', '$time')";
  
  if(!mysqli_query($con, $query)){
   die('Error: ' .mysqli_error($con));
  }else{
   header("Location: index.php");
   exit();
  }
  </code></pre>