Código PHP:
<?php $aponer = $row_Recordset1['Dcoins'] - $row_Recordset2['Precio']?>
<?php $producto = $row_Recordset2['imagen']?>
<?php if ($row_Recordset1['Dcoins'] >= $row_Recordset2['Precio'])
{
$insertSQL = sprintf("UPDATE `rp1`.`players` SET `Dcoins` = %s, `Char` = %s WHERE Name='".$_SESSION['MM_Username'],
GetSQLValueString($aponer),
GetSQLValueString($producto), 1);
}
else
{?>
Error
<?php }?>