Ver Mensaje Individual
  #5 (permalink)  
Antiguo 10/10/2008, 13:42
Avatar de Superlinux
Superlinux
 
Fecha de Ingreso: octubre-2005
Ubicación: Colombia
Mensajes: 662
Antigüedad: 18 años, 11 meses
Puntos: 1
Respuesta: mostrar imagen

... aqui dejo el codigo que tengo ... gracias por la ayuda

Código PHP:
        <?php 
            
if($noticias){
                foreach(
$noticias as $noticia){ 
                
?>
                <div class="content">
                    <div id="myGallery">
                            <?php 
                            $ID
$noticia[idArticulo]; $titulo $noticia[titulo]; $contenido $noticia[contenido];
                            
$first resetexplode('.',$noticia[imgroot]) ); $mid =   '_s';$last =  endexplode('.',$noticia['imgroot']) );
                            
$img_root "img/".$first.$mid.'.'.$last;?>
                            
                            <div class="imageElement">
                            <img src="<?php echo $img_root ?>" class="full" />
                                                
                            <h3><p><span class="style1"><span class="style13"><?php echo $titulo ?></span></span></strong><br/><br/>
                            <?php echo substr($contenido0120); ?>... <a href="ver_articulo.php?id=<?php echo $ID ?>" target="_parent" class="claro" >ver m&aacute;s...</a></span><hr/>
                            <a href="#" title="open image" class="open"></a>
                            <img src="<?php echo $img_root ?>" class="thumbnail" /></h3></p>
                            <?php 
                            
}//Fin del foreach
                        
}else{    
                                echo 
"<br><br><p align=\"center\" ><span class=\"tcontenido\"> No hay artículos recientes</span> </p>";
                        }
//Fin del if
                        
?>
                    </div>
                </div>
            </div>
        </div>
__________________
"La vida sigue su curso, tú toma parte de ella."