Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php foreach($query1 as $res1) : ?>
- <?php
- $months = $res1['month'];
- $years = $res1['year'];
- $month = date("F", mktime(0,0,0, $months, 10));
- $year = date("Y", mktime(0,0,0, $years, 10));
- ?>
- <h1><?=$month;?></h1>
- <?php foreach ($query2 as $res2) : ?>
- <?php if ($res2["month"] == $res1["month"]) : ?>
- <h2><?=$res2["date"];?></h2>
- <h3><?=$res2["title"];?></h3>
- <?php endif; ?>
- <?php endforeach; ?>
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement