Jump to content

[SOLVED] Long day... Query help?


centerwork

Recommended Posts

Here is what I am trying to do. In my table there is an Id column and a date column. The Id column will have reoccurring Ids. I need a query that will return the top five reoccurring Ids that occurred with in the last 30 days.

 

Here is what I have so far:

 

$date30 = time()-60*60*24*30;
$query = "SELECT * FROM table WHERE date > $date30 ORDER BY DESC";

 

Any help would be appreciated.

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/117262-solved-long-day-query-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.