title: How do I hide the “Notice: Use of undefined constant”
body: <p>I'm fixing the bugs on a Dental Management System my professor provided me. I've been viewing a PHP page on XAMPP. Now, my professor used an older version and we saw no problems with it, but with the current version, I see a lot of "Notice: Use of undefined constant" notifications. Is there any way I could at least hide them if I can't fix them? Here's my coding.</p>
  
  <pre><code>    $Q8 = $usertab4['Q8'];
      if($Q8 == 'No'){
        $Q8A == '';
        $Q8B == '';
        $Q8C == '';
        $Q8D == '';
        $Q8E == '';
        $Q8F == '';
      }
      else{
        $Q8A = $usertab4['Q8A'];
        $Q8B = $usertab4['Q8B'];
        $Q8C = $usertab4['Q8C'];
        $Q8D = $usertab4['Q8D'];
        $Q8E = $usertab4['Q8E'];
        $Q8F = $usertab4['Q8F'];
      }
  </code></pre>
  
  <p>Q8 pertains to asking if the patient has allergies to certain medicines. Q8A to Q8F pertain to asking if the s/he is allergic to this or that. Naturally, by default, the patient would need not answer Q8A to Q8F if they said "No" to Q8. But I'm getting errors when "No" is answered to Q8.</p>
  
  <pre><code>             &lt;tr&gt;
                   &lt;td&gt;
                       &lt;font face = '$font3' size = '1' color = 'Black'&gt; &lt;i&gt; &lt;b&gt; 8. ALLERGIC TO ANY MEDICINE?: &lt;/b&gt; &lt;/i&gt; &lt;/font&gt; &amp;nbsp
                       &lt;font face = '$font3' size = '2' color = 'Black'&gt; &lt;b&gt; $Q8 &lt;/b&gt; &lt;/font&gt;
                   &lt;/td&gt;
                   &lt;td&gt;
                       &lt;font face = '$font3' size = '1' color = 'Black'&gt; &lt;i&gt; &lt;b&gt; IF YES, WHAT?: &lt;/b&gt; &lt;/i&gt; &lt;/font&gt; &amp;nbsp
                       &lt;font face = '$font3' size = '2' color = 'Black'&gt; &lt;b&gt;";
                       if($Q8A != ''){
                         print "$Q8A ";
                       }
                       if($Q8B != ''){
                         print "$Q8B ";
                       }
                       if($Q8C != ''){
                         print "$Q8C ";
                       }
                       if($Q8D != ''){
                         print "$Q8D ";
                       }
                       if($Q8E != ''){
                         print "$Q8E ";
                       }
                       if($Q8F != ''){
                         print "$Q8F ";
                       }
                       print "&lt;/b&gt; &lt;/font&gt;
                   &lt;/td&gt;
               &lt;/tr&gt;
  </code></pre>
  
  <p>I separated the above two because they're in different areas. I have plenty more problems, but one step at a time.</p>