I'm creating a search system where the user will only place the month and year that they want to search. but I'm not getting the code is this
$output='<h2 class="text-center mb-4" style="color:red">Elementos</h2>
<div class="table-responsive">
<table class="table">
<thead>
<tr class="jumbotron">
<th>Nº Interno</th>
<th>Nome</th>
<th>SV</th>
</tr>
</thead>
'.do{.'
<tbody style="border-bottom:2px solid red;">
<td>'.$row_elementos['N Interno'].'</td>
<td>'.$row_elementos['Nome'].'</td>
<td>'.$total.'</td>
</tbody>'.
}while ($row_elementos = mysql_fetch_assoc($elementos)).'
</table>
</div>';
Then print the base of the research done below with the following code
<?php print("$output");?>
the errors are in {do (syntax error, unexpected 'do' (T_DO))} and not {while (syntax error, unexpected '}'}. How do I fix the errors?