Jump to content

count(*) arrange by highest value


dhope

Recommended Posts

Hi,

 

is it possible to count how many values where logged on a certain date in a database, then arrange them starting with the the most popular day?

 

Thanks in advance.

 

my code,

 

$query = "SELECT *, count(*) FROM statTracker GROUP by date_visited";

$result = mysql_query($query);

while ($row = mysql_fetch_array($result)) {

}

Link to comment
https://forums.phpfreaks.com/topic/183300-count-arrange-by-highest-value/
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.