Select Records older than one week

/ Published in: MySQL
Save to your folder(s)

Display records older than one week.

Copy this code and paste it in your HTML
  1. tablename
  2. tablename.tabledatefield < DATE_SUB( NOW(), INTERVAL 7 DAY )

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.