title: Is there any way something like this possible?
body: <pre><code>&lt;?php
  $division=$row['mark'];
  $pass="Passed";
  if($division&gt;=80 &amp;&amp; $pass==include "result.php")// Result.php has two value: one is `Pass` and the other is `Fail`.
  {
    echo "Letter";
  }
  elseif($division&gt;=70 &amp;&amp; $pass==include "result.php")
  {
    echo "First";
  }
  else
  {
    echo "Fail";
  }
  ?&gt;
  </code></pre>
  
  <p>What I want to output here is: if <code>$division</code> is equal to 80 and at the same time if <code>$pass</code> is equal to <code>Passed</code>, echo <code>Letter</code>. But if <code>$division</code> is less than 70, echo <code>Fail</code>; also <code>$pass</code> here equals to <code>fail</code> which is taken from <code>result.php</code>.  I have been trying to output it with following code, but it does not work. It outputs <code>FailFailFailFail</code> when <code>$division</code> is less than 70.</p>
  
  <p>Code for Result.php</p>
  
  <pre><code>&lt;?php
     $eng=40;
     $mizo=40;
     $hindi=40;
     $maths=40;
     $ss=40;
     $science=40;
  
     if ($eng&gt;=40 &amp;&amp; $mizo&gt;=40 &amp;&amp; $hindi&gt;=40 &amp;&amp; $maths&gt;=40 &amp;&amp; $ss&gt;=40 &amp;&amp; $science&gt;=40)
     {
     echo "&lt;font color=green&gt;Passed&lt;/font&gt;";
     }
     else 
     {
     echo "&lt;font color=red&gt;Failed&lt;/font&gt;";
     }
     ?&gt;
  </code></pre>