Ok with the array when an option is chosen i have created if else statements to choose batches because some ore type have the same batch and i plan on the options when i posted this to my site all i get are ERROR repeatedly and does not echo the batch #. Can someone explain what ive done wrong. Thanks in advance. or if you know of a better way to write this that would be greatly appreciated.
[php]
$type_ore = array(“Arkonor” => 1, “Bistot” => 2, “Crokite” => 3, “Dark Ochre” => 4);
if ($type_ore==“1”)
$batch = 250;
else
echo “ERROR”;
if ($type_ore==“2”)
$batch = 200;
else
echo “ERROR”;
if ($type_ore==“3”)
$batch = 250;
else
echo “ERROR”;
if ($type_ore==“4”)
$batch = 400;
else
echo “ERROR”;
echo $batch;
[/php]