Jump to content

Group By Multiple results


datoshway

Recommended Posts

My group by statement is only returning one result if they are the same data. Need this to display all results even if they are the same.  See below what I have.  Thanks in advance.

$sql = "SELECT * FROM calendar_event GROUP BY month, day, year ORDER BY month, day, year ASC"; 
$result = mysql_query($sql);

$count = mysql_num_rows($result);

Link to comment
https://forums.phpfreaks.com/topic/231524-group-by-multiple-results/
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.