Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/06/2011, 15:22
Avatar de skiper0125
skiper0125
 
Fecha de Ingreso: octubre-2010
Ubicación: $this->Mexico('Toluca');
Mensajes: 1.127
Antigüedad: 13 años, 7 meses
Puntos: 511
Respuesta: matriz de imagenes

Hola que tal.

Haber prueba con esto y comentas.

Código PHP:
Ver original
  1. <?php
  2. function CargarAsistentes ($idevento, $conn){
  3.  
  4. $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 ";
  5. $resultado = mysql_query($sqlasistentes,$conn);
  6. $conteo = mysql_num_rows($resultado);
  7.  
  8. echo "<table border = 2>";
  9.     if($conteo == 0){
  10.         echo "
  11.         <tr>
  12.         <td><font face = arial size = 2><b>¡A&uacute;n no hay asistentes para este evento, s&eacute; el primero en asistir!</font></td>
  13.         </tr>
  14.         ";    
  15.     }else{
  16.         echo "<tr>";
  17.         $x=0;
  18.         while ($filas = mysql_fetch_row($resultado)){
  19.             $x=$x+1;
  20.                 if($x%10==0){
  21.                     echo "</tr><tr><td><img src = '".$filas[0]."' width=30 height=30 /></td>";
  22.                 }else{
  23.                     echo "<td><img src = '".$filas[0]."' width=30 height=30 /></td>";
  24.                 }
  25.         }
  26.         echo "</tr>";
  27. }//fin else
  28.  
  29. echo "</table>";
  30. }// fin fucntion
  31. ?>

Saludos
__________________
Recuerda que estamos aquí para orientarte, y no para hacer tu trabajo.
Si mi aporte fue de ayuda, recuerda que agradecer no cuesta nada +1

Skiper0125