mysql - Select Top Viewed From Last 7 Days -


I have the table with a date stamp eg. (1241037505). There is also a column with the number of views.

Looks like the data stamp looks like.

So I want to select the threads seen from the last week.

How do I do this?

Try this:

  SELECT * WHERE DATEDIFF (now () , Created_date) & lt; 7  

Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

c# - ListView onScroll event -

c - Linux mmap() error -