|    
			
				07/06/2009, 01:09
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: agosto-2008 
						Mensajes: 97
					 Antigüedad: 17 años, 2 meses Puntos: 1 |  | 
  |  Respuesta: Mostra foto de base de datos  
  nop che seguimos sin suerte, :s q mal loco no puede tomar tanto laburo esto jeje te dejo mi codigo a per si podemos ver donde esta el error.
 if(isset($_SESSION['carro']))
 $carro=$_SESSION['carro'];else $carro=false;
 
 $qry=mysql_query("select * from carro order by producto asc");
 ?>
 <html>
 <head>
 <title>CATÁLOGO</title>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 <style type="text/css">
 <!--
 .catalogo {
 font-family: Verdana, Arial, Helvetica, sans-serif;
 font-size: 9px;
 color: #333333;
 }
 -->
 </style>
 </head>
 <body>
 <div align="justify"></div>
 <table width="272" align="center" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;">
 <tr valign="middle" bordercolor="#FFFFFF" bgcolor="#DFDFDF" class="catalogo">
 <td width="170">Foto </td>
 <td width="170"><strong>Producto</strong></td>
 <td width="77"><strong>Precio</strong></td>
 <td width="25" align="right"><a href="vercarrito.php?<?php echo SID ?>" title="Ver el contenido del carrito"><img src="vercarrito.gif" width="25" height="21" border="0"></a></td>
 </tr>
 <?php
 
 while($row=mysql_fetch_assoc($qry)){
 ?>
 <tr valign="middle" class="catalogo">
 <td><img src="<?php echo $row['imagen'] ?>" /></td>
 <td><?php echo $row['producto'] ?></td>
 <td><?php echo $row['precio'] ?></td>
 <td><?php
 if(!$carro || !isset($carro[md5($row['id'])]['identificador']) || $carro[md5($row['id'])]['identificador']!=md5($row['id'])){
 
 ?></td>
 <td align="center"><a href="agregacar.php?<?php echo SID ?>&id=<?php echo $row['id']; ?>"><img src="productonoagregado.gif" border="0" title="Agregar al Carrito"></a><?php }
 else
 
 {?><a href="borracar.php?<?php echo SID ?>&id=<?php echo $row['id']; ?>"><img src="productoagregado.gif" border="0" title="Quitar del Carrito"></a><?php } ?></td>
 </tr><?php } ?>
 </table>
 </body>
 </html>
 <?php
 ob_end_flush();
 ?>
     |