0
I have the following code:
<?
$result = $connection -> query("SELECT * FROM testemunhos") or die($connection -> error);
while($row = $result -> fetch_array(MYSQLI_ASSOC)){
?>
<div class="item">
<div class="quote-left">
<img src="<?=$row['testemunho_icon']?>" alt=""/>
<div class="ql-content">
<p><?=$row['testemunho_texto']?></p>
<cite>-- <?=$row['testemunho_cliente']?>, <span><?=$row['testemunho_empresa']?></span></cite>
</div>
</div>
<div class="quote-sep"></div>
<div class="quote-right">
<img src="<?=$row['testemunho_icon']?>" alt=""/>
<div class="qr-content">
<p><?=$row['testemunho_texto']?></p>
<cite>-- <?=$row['testemunho_cliente']?>, <span><?=$row['testemunho_empresa']?></span></cite>
</div>
</div>
</div>
<?
}
?>
I want in the quote-right
the next record of the database appears, thus he prints the same record on both sepradores quote-left
and quote-right
Some Suggestion?
There will always be an even number in this consultation?
– Felipe Avelar
It may or may not depend on the testimony that will enter.
– Márcio André