Hi I have the following table that is generated from my database, it looks like this
The problem is I dont want the dates to repeat. If there is more than one fixture for a specific date, I only want the date displayed once and then the fixtures under the date.
Example In this case, on the image, Today,2015-04-23 must be displayed only once and then the 2 team names under it.
Im using the following code
$echoed = false;
while($row = > $played){
$gameDate = $row['event_date'];
$team1 = $row['team1'];
$team2 = $row['team2'];
$venue = $row['venue'];
$eventId = $row['event_id'];
if($gameDate == $date && !$echoed){
echo'<tr>';
echo $echoed ='<td>Today,'.$gameDate.'echo</td>';
echo'</tr>';
echo'<tr>';
echo'<td>'.$team1.'</td>';
echo'<td>'.$team2.'</td>';
echo'<td>'.$venue.'</td>';
:
:
However code above is not giving desired result and returns result same as per image above