title: mysql insert time
body: <p>I'm making a comment box. but i want so when people click submit comment, then they time get logged into mysql togheter with the other info i logg. heres the code i use: </p>
  
  <pre><code>if(isset($_POST['btnRegister'])) //===When I will Set the Button to 1 or Press Button to register
  {
  $query = mysql_query("SELECT * FROM comment WHERE username='$username'");
  if(mysql_num_rows($query) &gt; 5 ){
  echo "Slow down! you can only send 5 comments a day";
  
  }else{
  
  mysql_query ("insert into comment(username,comment)values('$username','$comment')");
  header('location: succes_comment.php');
  }
  }
  ?&gt;
  </code></pre>
  
  <p>so if a user clicked that, then the mysql time colonnum got the username, comment and the time he sent the comment.</p>