Processing elseif command in php -


i trying produce particular treatment algorithm based on several clinical factors. on choosing factors drop-down list menu in form, treatment algorithm proposed. while using elseif php commands, getting syntax error. please help. thanks.

<?php         if(($t == '2' && ($n =='1') && ($er=='positive') && ($her == 'negative') && ($ki == 'low (<14%)') && ($g=='g1') && ($ps == 'premenopause')) || (($t == '3' && ($n =='0') && ($er=='positive') && ($her == 'negative') && ($ki == 'low (<14%)') && ($g=='g1') && ($ps == 'premenopause')) {           echo '<br />';         echo '<br />';         echo "t$t";         echo "n$n";         echo "m0.   ";         echo "iiВ stage";         echo '<br />';         echo "patient status: $ps";         echo '<br />';         echo "er/pr status: $er" ;         echo '<br />';         echo "her2/neu status: $her" ;           echo '<br />';         echo "ki-67 expression: $ki";         echo '<br />';         echo "grade of differentiation: $g";         echo '<br />';         echo "molecular subtype: luminal А";         echo '<br />';         echo '<br />';         echo '<img src="/img/tx.png" border=0>';         echo '<br />';         echo '<br />';         echo "$luma3_1"; }         else         {         echo "that combination not exist";         }         ?> 

in if have missed ")" @ end.

) || ($t == '3' && //   ^ start here 

so need change:

 ($ps == 'premenopause')) { 

to

 ($ps == 'premenopause'))) { //                       ^ 

Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -