salve
con questo script come faccio ad inserire un testo con relativo link (uguale) dopo ogni 2 risultati listati dal db?
Grazie
codice:
<?php
$nomes = $_GET['name'];
$ris_news= "SELECT * FROM tab where codice = '$nomes' order by id";
$result = mysqli_query($db,$ris_news);
$numerorighe = mysqli_num_rows($result);
if ($numerorighe==0){
?>
<p align="center">Non ci sono dati</p>
<?php
}
else
{
while ($row = mysqli_fetch_array($result,MYSQLI_ASSOC)) {
?>
<img src="img/<?=$row['foto1']?>">
<p><?=$row['didascalia']?></p>
<?php
$i++;
}
}
?>