Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $count=0;
- //pecorrendo os registros da consulta.
- while ($aux = mysqli_fetch_assoc($sql)) {
- echo '<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">';
- echo '<div class="single-item-grid">';
- echo '<div class="item-img">';
- echo '<a href="'.INCLUDE_PATH.'rifas/'.$aux['categoria'].'/'.$aux['slug'].'"><img src="'.INCLUDE_PATH.'painel/uploads/'.$aux['capa'].'" data-original="'.INCLUDE_PATH.'painel/uploads/'.$aux['capa'].'" alt="'.$aux['titulo'].'" class="img-responsive" style="display: block;"></a>';
- echo '</div>';
- echo '<!--<div class="bg-barra-pagos-item"><div class="barra" style="width: 1%;"><div class="pct" style="right: 2px;">1</div></div></div>-->';
- echo '<div class="item-content">';
- echo '<div class="item-info">';
- echo '<h3><a href="'.INCLUDE_PATH.'rifas/'.$aux['categoria'].'/'.$aux['slug'].'">'.$aux['titulo'].'</a></h3>';
- echo '<span>Sorteio dia '.date('d/m/Y', strtotime($aux['data'])).'</span>';
- echo '<div class="price">'.$aux['cost'].'</div>';
- echo '</div>';
- echo '</div>';
- echo '</div>';
- '</div>';
- $count++;
- if($count == 3){
- //echo "<div style=\"margin: 3%\">";
- //echo "<img src=\"images/add/5.jpg\">";
- //echo "</div>";
- echo "<!-- ANÚNCIO --> ";
- echo "<div class=\"row\">";
- echo "<img src=\"https://www.teamdrilling.com/wp-content/uploads/2013/10/team-about-banner-980x180.jpg\">";
- echo "</div>";
- echo "<!-- ANÚNCIO --> ";
- echo "<br>";
- $count=0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement