The problem is that number_format()it cannot parse the number with a comma in it. You can fix this with str_replace(',', '', $row_Recordset1['Price']), then type number_format()in a number.
if(isset($row_Brand['Sale']))
{
$YourPrice = ($row_Brand['Sale'] * number_format(str_replace(',', '', $row_Recordset1['Price']), 2, '.', ''));
}
else
{
($YourPrice = number_format(str_replace(',', '', $row_Recordset1['Price']), 2, '.', ''));
}
source
share