このテーブルを下に表示したい
September 2013
- 14/09/2013 | 14:30 | Football | League | Paris - Berlin
- 14/09/2013 | 19:30 | Volley | Cup | Paris - Barcelona
- 25/09/2013 | 12:00 | Football | Amical | Paris - Bordeaux
October 2013
- 5/10/2013 | 15: 00 | Cup | Paris - Londres
これは私のコードです
$dateQuery = mysql_query("matches.id、date_debut、date_fin、matches.score、sports.title AS スポーツ、clubs1.title AS reevant、clubs2.title AS visiteur、競技会.title AS 競技、matches.description、sexes.title を選択AS性
FROM マッチ
INNER JOIN sexes ON sexes.id = matches.sexe_id
INNER JOIN sports ON sports.id = matches.sport_id
内部結合 clubs as clubs1 ON clubs1.id = matches.recevant_id
内部結合 clubs as clubs2 ON clubs2.id = matches.visiteur_id
コンペティション ON コンペティション.id = matches.competition_id
WHERE CURRENT_DATE()<=date_debut
ORDER BY date_debut ASC") または die(mysql_error());
while($row=mysql_fetch_assoc($dateQuery)){
print '<b>'.$tIndexed[$row['date_debut'] ][ $row['sport'] ][]=date("d-m-Y",strtotime($row['date_debut'])).'</b><br />';
foreach($tIndexed as $sDate => $tIndexedDate){
foreach($tIndexedDate as $sEvenement => $tIndexedEvenement){
foreach($tIndexedEvenement as $sTexte){
$sTexte = $row['recevant'].'-'.$row['visiteur'];
print date("H:i",strtotime($row['date_debut'])).' | ' .$row['sport'].' | '.$row['competition'].' | '.$sTexte.' <br />';
}
}
}
}
間違った結果表示
14-09-2013
14:30 | Football | Championnat de France | IOS ORLEANS-CSSM PARIS
14-09-2013
19:30 | Football | Championnat de France | CSSM PARIS-ASLS NANCY
19:30 | Football | Championnat de France | CSSM PARIS-ASLS NANCY
21-09-2013
15:00 | Football | Championnat de France | CSS RENNES-CSSM PARIS
15:00 | Football | Championnat de France | CSS RENNES-CSSM PARIS
15:00 | Football | Championnat de France | CSS RENNES-CSSM PARIS
28-09-2013
19:30 | Football | Championnat de France | CSSM PARIS-CSS RENNES
19:30 | Football | Championnat de France | CSSM PARIS-CSS RENNES
19:30 | Football | Championnat de France | CSSM PARIS-CSS RENNES
19:30 | Football | Championnat de France | CSSM PARIS-CSS RENNES
この問題を解決するためにあなたが私を助けてくれることを願っています.
ありがとうございます