Les escribo para ver si me ayudan a resolver un pequeño problema.
Tengo una pagina.php que toma datos de una base de datos
Código PHP:
ob_start("ob_gzhandler");
session_start();
$cantidad;
mysql_connect("localhost","root","");
mysql_select_db( "agustin_carritobasededatos2" );
if(isset($_SESSION['carro'])){
$carro=$_SESSION['carro'];
}
else{
$carro=false;
}
$qry=mysql_query("select * from producto order by id asc");
?>
<?php
for($i=0;$row=mysql_fetch_assoc($qry);$i++){
?>
<table width='656' height='100' border='1' frame="void">
<tr>
<td width="117"><div align="center"><?php
echo "<img width='97' height='75' border='0' align='absmiddle' widht='100' src='images/". $row['fotos']. "'>";
?>
<br>
</div></td>
<td width="481"><p align="center" class="Estilo1"><?php echo $row['nombre']."<br>";?></p>
<p align="center"><strong><?php echo "$" .$row['precio'] ?></strong></p>
<p align="center"><?php echo $row['shortdescripcion'] ?></p>
<p align="center"><a href="mostrarproducto.php?<?php echo SID ?>&id=<?php echo $row['id']; ?>"class="Estilo2">Comprar ahora</a></p>
</td>
</tr>
</table><br>
<?php
}
?>
Muchas gracias.
Matias