Foros del Web » Programando para Internet » PHP »

Galeria de imágenes con thumbnail en php

Estas en el tema de Galeria de imágenes con thumbnail en php en el foro de PHP en Foros del Web. Saludos people, tengo la siguiente duda. se agradece cualquier apoyo. luego de insertar la ruta de imágenes en una tabla y copiar las img a ...
  #1 (permalink)  
Antiguo 12/05/2012, 10:27
Avatar de frankjoel86  
Fecha de Ingreso: noviembre-2008
Ubicación: Ica
Mensajes: 295
Antigüedad: 15 años, 5 meses
Puntos: 0
Galeria de imágenes con thumbnail en php

Saludos people, tengo la siguiente duda. se agradece cualquier apoyo.
luego de insertar la ruta de imágenes en una tabla y copiar las img a una carpeta.
al momento de mostrarlas como hago para que cuando se le haga clic a la imagen aparezca mas grande.

<?php
include("cn.php");
$t=mysql_query("select *from noticias order by COD_NOT desc limit $inicio,5", $cn);
while($rows=mysql_fetch_array($t)){
echo "<tr>";
echo "<td>$rows[1]</td>";
echo "<td>$rows[2]</td>";
echo "<td><img src='$rows[IMG1]' width='80' height='91'></td>";
echo "<td><img src='$rows[IMG2]' width='80' height='91'></td>";
echo "<td><img src='$rows[IMG3]' width='80' height='91'></td>";

echo "<td><a href='Modificar_E.php?id=$rows[0]'>Editar</a>-<a href='eliminar_noticia.php?id=$rows[0]'>Eliminar</a></td>";
echo "</tr>";
}
mysql_free_result($t);
mysql_close($cn);
?>

*Se agradece cualquier apoyo.
__________________
www.basritours.com
Agencia de turismo en Ica.
  #2 (permalink)  
Antiguo 13/05/2012, 16:26
Avatar de enlinea777  
Fecha de Ingreso: mayo-2008
Ubicación: frente al pc
Mensajes: 1.830
Antigüedad: 15 años, 11 meses
Puntos: 127
Respuesta: Galeria de imágenes con thumbnail en php

echa un vistazo a este plugin
http://www.no-margin-for-errors.com/...ightbox-clone/

si quieres simplemente mostrar la imagen prueba con esto:

Código PHP:
<?php 
include("cn.php");
$t=mysql_query("select *from noticias order by COD_NOT desc limit $inicio,5"$cn);
while(
$rows=mysql_fetch_array($t)){
echo 
"<tr>";
echo 
"<td>$rows[1]</td>";
echo 
"<td>$rows[2]</td>";
echo 
"<td><a href='$rows[IMG1]'><img src='$rows[IMG1]' width='80' height='91'></a></td>";
echo 
"<td><a href='$rows[IMG2]'><img src='$rows[IMG2]' width='80' height='91'></a></td>";
echo 
"<td><a href='$rows[IMG3]'><img src='$rows[IMG3]' width='80' height='91'></a></td>";

echo 
"<td><a href='Modificar_E.php?id=$rows[0]'>Editar</a>-<a href='eliminar_noticia.php?id=$rows[0]'>Eliminar</a></td>";
echo 
"</tr>";
}
mysql_free_result($t);
mysql_close($cn);
?>

Etiquetas: galeria, mysql, sql, tabla, thumbnails
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 06:16.