hi there.
can someone explain why this does not work?
$Q10= 'g', $Q11= 'a' echos '2' works!
$Q10= 'g', $Q11= 'b' echoes '1' not working! should also echo '2'
perhaps my code is not well written?
<?
// Q10
if ($Q10 == 'a' && $Q11 == 'a' || $Q11 == 'b') {
echo '1';
} elseif ($Q10 == 'a' && $Q11 == 'c' || $Q11 == 'd') {
echo '1b';
} elseif ($Q10 == 'e' || $Q10 == 'f' || $Q10 == 'g' && $Q11 == 'a' || $Q11 == 'b') {
echo '2';
} elseif ($Q10 == 'e' || $Q10 == 'f' || $Q10 == 'g' && $Q11 == 'c' || $Q11 == 'd') {
echo '2b';
} elseif ($Q10 == 'b' || $Q10 == 'c' || $Q10 == 'd' && $Q11 == 'a' || $Q11 == 'b') {
echo '3a';
} else {
echo '3b';
}
?>