Código PHP:
<?php
$rescons="Select nombre_prod,image,tiempo_ofer,caract_tecnolog,descripcion,precio_oferta From producto WHERE id_producto='$id'";
$resquery=mysql_query($rescons,$link);
//echo mysql_errno().": ".mysql_error()."<BR>"; echo $rescons;
if(mysql_num_rows($resquery)!=0)
{
while($filas=mysql_fetch_array($resquery))
{
$descipcion=$filas["descripcion"];
$caract=$filas["caract_tecnolog"];
$nombre=$filas["nombre_prod"];
$precio=$filas["precio_oferta"];
//$hora=$filas["tiempo_ofer"];
//$resh=time-$hora;
$dias="SELECT DATEDIFF(fecha_venta, fecha_ingre) FROM producto WHERE id_producto=$id";
$dias2=mysql_query($dias,$link); //ESTÁ BIEN ESTO ??
?>
<tr>
<td width="336" height="300" valign="center" align="center"> <img border="0" src="<?php echo $filas["imagen"]; ?>">
</td>
<td width="364" valign="top"><font face="Arial, Helvetica, sans-serif"><?php echo $nombre; echo '<br>'.'<br>';
echo 'Descripcion:'.$descipcion; echo '<br>'.'<br>';
echo $caract; echo '<br>'.'<br>';
echo "Precio: $".$precio; echo '<br>'.'<br>'?> </font>
<font face="Arial, Helvetica, sans-serif" color="#0000FF"><?php echo "Dias restantes:". $dias2; [B]// en esta línea[/B]
?>
<font face="Arial, Helvetica, sans-serif" color="#0000FF"><?php echo "Dias restantes:". $dias2;