Ver Mensaje Individual
  #9 (permalink)  
Antiguo 26/08/2009, 02:39
rakata
 
Fecha de Ingreso: diciembre-2008
Mensajes: 46
Antigüedad: 15 años, 5 meses
Puntos: 0
Respuesta: problema al mostrar imagenes con mysql_fetch_array()

Intenta esto:

Código PHP:
Ver original
  1. <?
  2. include('conection.php');
  3. $id_usuario=$_SESSION[id_usuario];
  4. $sql="SELECT id, titulo, codigo FROM fotos WHERE id='$id' ORDER BY fecha DESC LIMIT 5";
  5. $resultado = mysql_query($sql);
  6. while ($mostrar = mysql_fetch_array($resultado)){
  7. print '<img src="archivosusuario/fotos/.$mostrar["codigo"]." height="200px" width="200px">';
  8. }
  9. ?>


Hay me dices si te funciono o no.

Última edición por rakata; 26/08/2009 a las 14:39