Hola que tal.
Haber prueba con esto y comentas.
Código PHP:
Ver original<?php
function CargarAsistentes ($idevento, $conn){
$sqlasistentes = "select b.imagen from tbasistencia a inner join tbcuenta b inner join tbevento c where a.codigo = b.codigo and a.idevento = ".$idevento." group by b.imagen ";
echo "<table border = 2>";
if($conteo == 0){
echo "
<tr>
<td><font face = arial size = 2><b>¡Aún no hay asistentes para este evento, sé el primero en asistir!</font></td>
</tr>
";
}else{
echo "<tr>";
$x=0;
$x=$x+1;
if($x%10==0){
echo "</tr><tr><td><img src = '".$filas[0]."' width=30 height=30 /></td>";
}else{
echo "<td><img src = '".$filas[0]."' width=30 height=30 /></td>";
}
}
echo "</tr>";
}//fin else
echo "</table>";
}// fin fucntion
?>
Saludos