"; echo (" $r_year[year]"); echo "
\n"; echo "
\n"; $q_month = mysqli_query($con, "SELECT month(dtime) AS month FROM post WHERE visible = 1 AND year(dtime) = $r_year[year] GROUP BY month(dtime) ORDER BY month DESC;"); while($r_month = mysqli_fetch_array($q_month)){ echo "
"; echo (" " . $lng['months'][$r_month['month'] - 1] . ""); echo "
\n"; echo "
    \n"; $q_title = mysqli_query($con, "SELECT id, permalink, title_$lang AS title FROM post WHERE visible = 1 AND year(dtime) = $r_year[year] AND month(dtime) = '$r_month[month]' ORDER BY dtime DESC;"); while($r_title = mysqli_fetch_array($q_title)) echo "
  • $r_title[title]
  • \n"; echo "
\n"; } echo "
\n"; } ?>