ok, miremos el codigo estare probando pero si alguiens ave, me ayudaria mucho:
Código PHP:
Ver original<?
include_once("conectar.php");
$conn=BD::Conectar();
$tienda=$_POST["tienda"];
$cantidad=$_POST["cantidad"];
$r=mysql_query("SELECT * FROM tb_producto WHERE id_producto='$co'",$conn); ?>
<?php
{
$sd=$_POST["cantidad"];
if($sd > $f["existencia"])
{
echo '<center><br>
<font face=arial color=red>! Exedites la existencia del producto, por favor elije una existencia menor a '.$f["existencia"].'!</font></br></center><center><img src="http://www.forosdelweb.com/free_berries/free_mobile_berries_64/stop_64.png" width="64" height="64" /></center>
<center><font face=arial color=red>!Compra aplazada!</font></center>';
}else{
$precio=$f["precio"];
$edi=$cantidad*$precio;
$valor=$f["precio"];
$as=$f["nom_producto"];
echo '<table width="819" height="117" border="0">
<tr>
<th width="400" height="21" scope="col"><div align="left" class="style12">Producto:</div></th>
<td><font face="arial" color="black" size="2">'.$f["nom_producto"].'</font></td>
</tr>
<tr>
<td height="21"><span class="style12">Descripcion:</span></td>
<td><font face="arial" color="black" size="2">'.$f["des_producto"].'</font></td>
</tr>
<tr>
<td height="21"><span class="style12">Precio:</span></td>
<td><font face="arial" color="red" size="3"><u>$'.$valor.'</u></font></td>
</tr>
<tr>
<td height="21"><span class="style12">Cantidad:</span></td>
<td><font face="arial" color="black" size="2">'.$cantidad.'</font></td>
</tr>
<tr>
</tr>
</table>'
;}
}
?>