Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/01/2014, 11:00
mensajeescrito
 
Fecha de Ingreso: mayo-2012
Mensajes: 760
Antigüedad: 12 años
Puntos: 5
Respuesta: scroll infinito de noticias

opss perdon me falto lo esencial , ahi va sorry:

Código PHP:
Ver original
  1. <table class="contenedor_opcs" border="0" cellpadding="0" cellspacing="5" id="tabla_microfotos" bgcolor="#000000">
  2.                    
  3.                 <?php
  4.  
  5.             $id=1;
  6.  
  7.             if($id<=10) {
  8.                
  9.                 $idd=$id+1;
  10.  
  11.                 echo $idd;
  12.                
  13.             }
  14.  
  15.  
  16.  
  17.                         $fotos = mysql_query("SELECT id,foto,comentario_foto FROM fotos_dominio where id='$idd'",$conexion);   
  18.  
  19.                         while ($foto = mysql_fetch_array($fotos)) {
  20.          
  21.                         $mostrar_foto = $foto['foto'];
  22.  
  23.                     ?>
  24.                    
  25.                    
  26.  
  27.                     <td align="center" height="133px" width="145px">
  28.  
  29.                         <?php
  30.                
  31.  
  32.  
  33.                 echo "<img src = '$mostrar_foto' class='sombra_blanca' style='max-height: 105px; max-width: 115px;'>" ?>
  34.          
  35.                     </td>  
  36.                                
  37.                     <?php } ?>
  38.      
  39.             </table>