Take into account that when updating your database, the data will already be updated when viewing your movie query ... Now, everything depends on how you are doing to display your data, to organize the table automatically According to the% w / o% you should display on each line, you can do this:
$varConsulta = ConsultaFilmes();
$i=0;
if ($varConsulta) {
echo "<table style='margin-left:2%;'><tr>";
foreach ($varConsulta as $lin) {
$linhas .= "<td style='vertical-align: middle;text-align: center;'>Filme<br />[IMAGEM][INFORMAÇÕES REFERENTES AO FILME]</td>";
echo $linhas;
$i++;
//Aqui é feito a mágica!!
if ($i % $qtdDeRegistros == 0) {
echo "</tr>";
echo "<tr>";
}
}
echo "</tr></table>";
}else{
echo "<h3> Nenhum filme dísponivel.</h3>";
}
}