I want to display data from a table by divs with columns of a specific size for each of them, but when I load the information it brings all of them into the same column, I do not want to use table tags to format them. See how it's popping up here.
echo"<div class='col-md-2'>";
echo "<div class='widget widget-default widget-item-icon'>";
echo "<div class='widget-item-left'>";
echo "<span class='fa fa-building-o'></span>";
echo "</div>";
echo "<div class='widget-data'>";
while ($row_aprt = $stmt->fetch(PDO::FETCH_ASSOC)){
extract($row_aprt);
echo "<div class='widget-int num-count'>{$num_apart}</div>";
echo "<div class='widget-title'>{$nm_apart} - {$tipo_apart}</div>";
echo "<div class='widget-subtitle'>Disponivel - {$disponivel}</div>";
}
echo "</div>";
echo "</div>";
echo "</div>";