Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/09/2013, 11:30
Avatar de ghiper
ghiper
 
Fecha de Ingreso: julio-2013
Ubicación: Guadalajara Jalisco
Mensajes: 80
Antigüedad: 10 años, 9 meses
Puntos: 0
Respuesta: mostrar mi imagen de mi base de datos

Muchas Gracias por tu respuesta ya lo resolví pero de esta manera cambiando todo por esto:

Código PHP:
Ver original
  1. <?php  
  2. $id = $_POST['id'];
  3. $query = "SELECT * FROM productos WHERE id = '$id'";
  4. $result = mysql_query($query); 
  5. while ($registro = mysql_fetch_array($result)){        
  6. ?>
  7. <td width='150'><?php echo"$id";?></td>
  8. <td width='150'><?php echo $registro['nombre']?></td>  
  9. <td width='150'><?php echo $registro['marca']?></td>  
  10. <td width='150'><?php echo $registro['descripcion']?></td>
  11. <td width='150'><?php echo $registro['precio']?></td>
  12. <td width='150'><?php echo $registro['cantidad']?></td>
  13. <td width='150'><?php  echo "<img src='".$registro['imagen']."'width=150/>";?></td>
  14. </table>

y asi me funciono bien todo.