Try using this for your table:
<?php $lastMonth = "";?>
<?php
$wa_startindex = 0;
while(!$RSProvningar->atEnd()) {
$wa_startindex = $RSProvningar->Index;
?>
<?php if ($lastMonth != $RSProvningar->getColumnVal("ProvningManad") && $RSProvningar->getColumnVal("ProvningManad") !="") { ?>
<?php
if (isset($tableShown)) {
echo("</tbody></table>");
}
$tableShown = true;
?>
<table class="table table-hover">
<thead>
<tr>
<th scope="col"><i class="far fa-calendar-alt"></i></th>
<th scope="col"><i class="fas fa-chair"></i></th>
<th scope="col"><i class="fas fa-wine-glass-alt"></i></th>
<th scope="col"><i class="fas fa-coins"></i></th>
</tr>
</thead>
<tbody>
<tr class="manadsnamn">
<td colspan="4">
<h2><?php echo($RSProvningar->getColumnVal("ProvningManad")); ?></h2>
</td>
</tr>
<?php $lastMonth = $RSProvningar->getColumnVal("ProvningManad");} ?>
<tr class="text-black-50">
<td><?php echo($RSProvningar->getColumnVal("Dayname")); ?> <?php echo($RSProvningar->getColumnVal("Day")); ?> <?php echo($RSProvningar->getColumnVal("Month")); ?></td>
<td><?php echo($RSProvningar->getColumnVal("ProvningPlatser")); ?> st</td>
<td><?php echo($RSProvningar->getColumnVal("Kategorier_KategoriNamn")); ?></td>
<td><?php echo($RSProvningar->getColumnVal("KategoriPrisklass")); ?></td>
</tr>
<?php
if (1==0) {
?>
</tbody>
</table>
<?php
}
?>
<?php
$RSProvningar->moveNext();
}
$RSProvningar->moveFirst(); //return RS to first record
unset($wa_startindex);
unset($wa_repeatcount);
?>
<?php
if (isset($tableShown)) {
echo("</tbody></table>");
}
?>