Could anyone tell me what's wrong with this code?
Thank you in advance for your effort.
<?php
If ($CategoryName == 'U-100') {
($UnitPrice = 500);
} else if ($CategoryName == 'U-130') {
($UnitPrice = 400);
} else if ($CategoryName == 'U-105') {
($UnitPrice = 350);
} else if ($CategoryName == 'U-95') {
($UnitPrice = 200);
}else if($CategoryNam e == 'U-85') {
($UnitPrice = 445);
$Total = $ProductUnits*U nitPrice
echo $Total
?>
Thank you in advance for your effort.
<?php
If ($CategoryName == 'U-100') {
($UnitPrice = 500);
} else if ($CategoryName == 'U-130') {
($UnitPrice = 400);
} else if ($CategoryName == 'U-105') {
($UnitPrice = 350);
} else if ($CategoryName == 'U-95') {
($UnitPrice = 200);
}else if($CategoryNam e == 'U-85') {
($UnitPrice = 445);
$Total = $ProductUnits*U nitPrice
echo $Total
?>
Comment