Ver Mensaje Individual
  #12 (permalink)  
Antiguo 27/12/2013, 08:19
Avatar de TSG
TSG
 
Fecha de Ingreso: septiembre-2013
Ubicación: España
Mensajes: 373
Antigüedad: 10 años, 8 meses
Puntos: 9
Respuesta: mostrar imagen en un tamaño pequeño

Prueba con esto:

Código PHP:
Ver original
  1. <!--HTML5-->
  2. <!doctype html>
  3. <html lang="en">
  4. <head>
  5.     <meta charset="utf-8" /><!--compatibilidad para caracteres especiales-->
  6.     <title>Galeria de imagenes</title>
  7.     <link rel="stylesheet" href="./css/estilo.css" type="text/css" media="screen" /><!--conexion al estilo-->
  8. </head>
  9. <body>
  10.  
  11.  
  12.  
  13. <div class="contenedor"><!--clase para englobar la pagina-->
  14.    
  15.  
  16. <br>
  17.  
  18. <a href='altatema.php'><font size='4' color='#0000FF'>Agregar Temas</font> </a></p>
  19.  
  20. <?php
  21.  
  22. if ($abierto = mysql_connect ("localhost","root","7777777")){
  23.  
  24. $leer = "SELECT id,tema,autor,hijos,fecha,ruta FROM temas  WHERE tema<>' '";
  25.  
  26. $datos = mysql_db_query ("far",$leer);
  27.  
  28.  
  29.  
  30.  
  31. while ($fila = mysql_fetch_array ($datos)) {
  32. print ("<a href='listahijos.php?var=$fila[0]'> <img style='max-width: 50px; max-height: 50px;' src='".$fila[5]."'>");
  33.  
  34.  
  35.  
  36. }
  37.  
  38. } else {
  39. print ("No se puede conectar. Intente nuevamente");
  40. }
  41. ?>
  42.  
  43.  
  44.  
  45.  
  46. <div class="cabecera"><!--titulo de la pagina-->
  47.     <div class="ftp_area"><!--clase para el multiarchivos-->
  48.  
  49.  
  50. </body>
  51. </html>

Sólo cambié esta línea:

Código PHP:
Ver original
  1. while ($fila = mysql_fetch_array ($datos)) {
  2. print ("<a href='listahijos.php?var=$fila[0]'> <img style='max-width: 50px; max-height: 50px;' src='".$fila[5]."'>");
  3.  
  4.  
  5.  
  6. }

Si te fijas le añadí algo a la etiqueta img.
Las medidas del max-width, y max-height se las cambis por las que tu quieras.

¡Felices fiestas!
Saludos.