Damgası gruplar halinde Fikstür

0 Cevap php

Aşağıdaki kod veritabanındaki tüm demirbaş getirir.

    while ($row = mysql_fetch_assoc($result)) 
    {
        echo $row['date'];
        echo $row['home_user'];
        echo $row['home_team'];
        echo $row['away_user'];
        echo $row['away_team'];
    }

The problem I have is all the fixtures are just listed. There are many fixtures with the same dates. For each date(timestamp), there are 10 fixtures. What I am trying to achieve is each date printed and then the fixtures for that date underneath. Is this possible? Thanks

0 Cevap