title: How to delete rows with timestamp older than 7 days
body: <p>My timestamp format looks like this: <strong><code>2014-02-27 08:54:53</code></strong></p>
  
  <p>The table is <code>product_views</code>, and the time field is <code>ViewStamp</code>. I don't know how to DELETE rows older than 7 days. </p>
  
  <pre><code>$query="DELETE FROM product_views WHERE ViewStamp&lt; ?";
  </code></pre>
  
  <p>Thanks for the help. I am still a beginner so if I did not provide enough info please let me know and I will edit. </p>
  
  <p>edit: Using MySQL</p>