Ver originalif(mysqli_num_rows($index)>0){while($index1 = mysqli_fetch_array($index)){ echo "lanotica"; }}else{ echo 'No hay noticias';}