Goblin35
Новичок
Всем привет! Уважаемые спецы, очень Вас прошу помогите, вообщем вот код
html:
<div class="date-match">
<h4>28.08.2014 (воскресенье)</h4>
<div class="match">
<div class="top">
<div class="match-num">№4</div>
<div class="match-time">22:00</div>
</div>
<table>
<tr>
<td>Команда1</td>
<td>-</td>
</tr>
<tr>
<td>Команда2</td>
<td>-</td>
</tr>
</table>
<!--<div class="count">-</div>-->
<div class="place">Ледовый коток</div>
<!--<a href="">Протокол игры</a>-->
</div><!--match-->
</div><!--date-match-->
Таблица matches поля:
matches_id
match_date
match_day
match_time
match_team1
match_team2
match_team1_goals
match_team2_goals
match_place
нужно что бы получилось как на сайте http://www.khl.ru/calendar/
Пробывал сделать через цикл do while но не получилось. Цикл вывел сначала все числа и дни тоесть :
<div class="date-match"><h4>28.08.2014 (воскресенье)</h4>
а потом все матчи. Помогите плииз!
html:
<div class="date-match">
<h4>28.08.2014 (воскресенье)</h4>
<div class="match">
<div class="top">
<div class="match-num">№4</div>
<div class="match-time">22:00</div>
</div>
<table>
<tr>
<td>Команда1</td>
<td>-</td>
</tr>
<tr>
<td>Команда2</td>
<td>-</td>
</tr>
</table>
<!--<div class="count">-</div>-->
<div class="place">Ледовый коток</div>
<!--<a href="">Протокол игры</a>-->
</div><!--match-->
</div><!--date-match-->
Таблица matches поля:
matches_id
match_date
match_day
match_time
match_team1
match_team2
match_team1_goals
match_team2_goals
match_place
нужно что бы получилось как на сайте http://www.khl.ru/calendar/
Пробывал сделать через цикл do while но не получилось. Цикл вывел сначала все числа и дни тоесть :
<div class="date-match"><h4>28.08.2014 (воскресенье)</h4>
а потом все матчи. Помогите плииз!