0
I am developing a hotel system and I want to represent each apartment registered in the system with a panel containing information, that is, for each apartment the system generates a new panel that is displayed to the user. This is the structure of the panel
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">201(numero do quarto)
<span class="pull-right clickable panel-toggle"><em class="fa fa-toggle-up"></em></span></div>
<div class="panel-body">
<p>(Aqui vai o conteudo do panel)</p>
</div>
</div>
</div>
Remembering that in each panel should display the number of the apartment and whether or not it is busy. I hope you’ve made me understand what I’m trying to do
Simply select all the records from your database, loop through them all, and for each, generate the desired HTML code. Want to try?
– Woss