Why do I get error in syntax from the code below:
function wpai_package($price, $pack) {
if($pack!=' '){<br/>
return ($pack * $price);<br/>
} else {
return($price)
}<br/>
}
?>
I want to say if the pack IS NOT EMPTY (null) then price x pack otherwise price
Aucun commentaire:
Enregistrer un commentaire